heplify-server icon indicating copy to clipboard operation
heplify-server copied to clipboard

heplify-server.log in /

Open WallaceWilliam opened this issue 4 years ago • 4 comments

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/

WallaceWilliam avatar Apr 27 '20 09:04 WallaceWilliam

So this means you put the binary under / right?

negbie avatar Apr 29 '20 08:04 negbie

no root@homer:/# which heplify-server /usr/local/bin/heplify-server

WallaceWilliam avatar Apr 29 '20 08:04 WallaceWilliam

Thanks. Yes this should be improved!

negbie avatar Apr 29 '20 08:04 negbie

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

rlaager avatar Sep 30 '20 20:09 rlaager