Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

heplify-server.log in / #360

Open
WallaceWilliam opened this issue Apr 27, 2020 · 4 comments
Open

heplify-server.log in / #360

WallaceWilliam opened this issue Apr 27, 2020 · 4 comments
Labels
good first issue Good for newcomers

Comments

@WallaceWilliam
Copy link

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/

@negbie
Copy link
Member

negbie commented Apr 29, 2020

So this means you put the binary under / right?

@WallaceWilliam
Copy link
Author

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

@negbie
Copy link
Member

negbie commented Apr 29, 2020

Thanks. Yes this should be improved!

@negbie negbie added the good first issue Good for newcomers label May 10, 2020
@rlaager
Copy link

rlaager commented Sep 30, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants