diff --git a/init/sftpgo.service b/init/sftpgo.service index 558ccdf2..c51cd0da 100644 --- a/init/sftpgo.service +++ b/init/sftpgo.service @@ -7,7 +7,10 @@ User=root Group=root Type=simple WorkingDirectory=/etc/sftpgo -ExecStart=/usr/bin/sftpgo --config-dir /etc/sftpgo --log-file-path /var/log/sftpgo.log +Environment=SFTPGO_CONFIG_DIR=/etc/sftpgo/ +Environment=SFTPGO_LOG_FILE_PATH=/var/log/sftpgo.log +EnvironmentFile=-/etc/sftpgo/sftpgo.env +ExecStart=/usr/bin/sftpgo KillMode=mixed Restart=always RestartSec=10s