Log to journald

By default on systems with systemd, send logs to stdout and thus to journald.
This commit is contained in:
Jo Vandeginste 2019-09-20 12:34:17 +02:00 committed by drakkan
parent 088e187e6a
commit 71093bbe1b

View file

@ -8,7 +8,7 @@ Group=root
Type=simple Type=simple
WorkingDirectory=/etc/sftpgo WorkingDirectory=/etc/sftpgo
Environment=SFTPGO_CONFIG_DIR=/etc/sftpgo/ Environment=SFTPGO_CONFIG_DIR=/etc/sftpgo/
Environment=SFTPGO_LOG_FILE_PATH=/var/log/sftpgo.log Environment=SFTPGO_LOG_FILE_PATH=
EnvironmentFile=-/etc/sftpgo/sftpgo.env EnvironmentFile=-/etc/sftpgo/sftpgo.env
ExecStart=/usr/bin/sftpgo serve ExecStart=/usr/bin/sftpgo serve
KillMode=mixed KillMode=mixed