2019-07-20 10:26:52 +00:00
|
|
|
[Unit]
|
|
|
|
Description=SFTPGo sftp server
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=root
|
|
|
|
Group=root
|
|
|
|
Type=simple
|
|
|
|
WorkingDirectory=/etc/sftpgo
|
2019-08-05 12:26:26 +00:00
|
|
|
Environment=SFTPGO_CONFIG_DIR=/etc/sftpgo/
|
|
|
|
Environment=SFTPGO_LOG_FILE_PATH=/var/log/sftpgo.log
|
|
|
|
EnvironmentFile=-/etc/sftpgo/sftpgo.env
|
2019-08-07 20:46:13 +00:00
|
|
|
ExecStart=/usr/bin/sftpgo serve
|
2019-07-20 10:26:52 +00:00
|
|
|
KillMode=mixed
|
|
|
|
Restart=always
|
|
|
|
RestartSec=10s
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|