summarylogtreecommitdiffstats
path: root/sfptpd.service
diff options
context:
space:
mode:
Diffstat (limited to 'sfptpd.service')
-rw-r--r--sfptpd.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/sfptpd.service b/sfptpd.service
new file mode 100644
index 000000000000..1e2e7e02dd1d
--- /dev/null
+++ b/sfptpd.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=sfptpd Service
+After=network.target
+Requires=openonload.service
+After=openonload.service
+
+[Service]
+Type=forking
+PrivateTmp=true
+EnvironmentFile=-/etc/default/sfptpd
+
+ExecStart=/usr/bin/sfptpd -f /etc/sfptpd.cfg
+ExecStop=/usr/bin/killall -SIGTERM /usr/bin/sfptpd
+
+[Install]
+WantedBy=multi-user.target