heplify-server
heplify-server copied to clipboard
heplify-server.log in /
file heplify-server.log create in the / (on ubuntu 18.04)
heplify-server.go
56 var fileRotator logp.FileRotator
57 fileRotator.Path = "./"
58 fileRotator.Name = "heplify-server.log"
59 logging.Files = &fileRotator
please remove it to /var/log/
So this means you put the binary under / right?
no root@homer:/# which heplify-server /usr/local/bin/heplify-server
Thanks. Yes this should be improved!
As a workaround, you can use something like this (sub in whatever you want for the log directory) in a systemd drop-in file (e.g. /etc/systemd/system/heplify-server.service.d/log.conf
):
[Service]
WorkingDirectory=/var/log/homer