sipcapture / heplify-server

HEP Capture Server for HOMER
https://sipcapture.org
GNU Affero General Public License v3.0
183 stars 85 forks source link

heplify-server.log in / #360

Open WallaceWilliam opened 4 years ago

WallaceWilliam commented 4 years ago

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 commented 4 years ago

So this means you put the binary under / right?

WallaceWilliam commented 4 years ago

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

negbie commented 4 years ago

Thanks. Yes this should be improved!

rlaager commented 3 years ago

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