2019-07-20 10:26:52 +00:00
|
|
|
[Unit]
|
2020-08-18 19:21:01 +00:00
|
|
|
Description=SFTPGo Server
|
2019-07-20 10:26:52 +00:00
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2020-09-25 16:23:04 +00:00
|
|
|
User=sftpgo
|
|
|
|
Group=sftpgo
|
2019-07-20 10:26:52 +00:00
|
|
|
Type=simple
|
|
|
|
WorkingDirectory=/etc/sftpgo
|
2019-08-05 12:26:26 +00:00
|
|
|
Environment=SFTPGO_CONFIG_DIR=/etc/sftpgo/
|
2019-09-20 10:34:17 +00:00
|
|
|
Environment=SFTPGO_LOG_FILE_PATH=
|
2019-08-05 12:26:26 +00:00
|
|
|
EnvironmentFile=-/etc/sftpgo/sftpgo.env
|
2019-08-07 20:46:13 +00:00
|
|
|
ExecStart=/usr/bin/sftpgo serve
|
2020-04-05 09:36:29 +00:00
|
|
|
ExecReload=/bin/kill -s HUP $MAINPID
|
2019-07-20 10:26:52 +00:00
|
|
|
KillMode=mixed
|
2020-09-17 07:45:40 +00:00
|
|
|
PrivateTmp=true
|
2019-07-20 10:26:52 +00:00
|
|
|
Restart=always
|
|
|
|
RestartSec=10s
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|