sftpgo-mirror/init/sftpgo.service

29 lines
601 B
SYSTEMD
Raw Normal View History

2019-07-20 10:26:52 +00:00
[Unit]
Description=SFTPGo Server
2019-07-20 10:26:52 +00:00
After=network.target
[Service]
User=sftpgo
Group=sftpgo
2019-07-20 10:26:52 +00:00
Type=simple
WorkingDirectory=/etc/sftpgo
Environment=SFTPGO_CONFIG_DIR=/etc/sftpgo/
Environment=SFTPGO_LOG_FILE_PATH=
EnvironmentFile=-/etc/sftpgo/sftpgo.env
ExecStart=/usr/bin/sftpgo serve
2020-04-05 09:36:29 +00:00
ExecReload=/bin/kill -s HUP $MAINPID
2021-09-19 15:37:18 +00:00
LimitNOFILE=8192
2019-07-20 10:26:52 +00:00
KillMode=mixed
PrivateTmp=true
2019-07-20 10:26:52 +00:00
Restart=always
RestartSec=10s
NoNewPrivileges=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=true
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
AmbientCapabilities=CAP_NET_BIND_SERVICE
2019-07-20 10:26:52 +00:00
[Install]
WantedBy=multi-user.target