aboutsummaryrefslogtreecommitdiffstats
path: root/mkosi.extra/etc/systemd/system/ffsync.service
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2020-01-19 20:39:49 +0100
committerDennis Eriksen <d@ennis.no>2020-01-19 20:39:49 +0100
commit9907b46a6be804d4916af03d59826b8bbaf8c09f (patch)
treef22bb506da0c8464384551c52879523f22410f98 /mkosi.extra/etc/systemd/system/ffsync.service
downloadmkosi-ffsync-9907b46a6be804d4916af03d59826b8bbaf8c09f.tar.gz
Initial commit
Diffstat (limited to 'mkosi.extra/etc/systemd/system/ffsync.service')
-rw-r--r--mkosi.extra/etc/systemd/system/ffsync.service24
1 files changed, 24 insertions, 0 deletions
diff --git a/mkosi.extra/etc/systemd/system/ffsync.service b/mkosi.extra/etc/systemd/system/ffsync.service
new file mode 100644
index 0000000..d1ede04
--- /dev/null
+++ b/mkosi.extra/etc/systemd/system/ffsync.service
@@ -0,0 +1,24 @@
+[Unit]
+Description=ffsync
+Requires=network.target
+After=network.target
+
+Type=simple
+[Service]
+ExecStart=/app/local/bin/gunicorn --paste /ffsync/syncserver.ini
+SyslogIdentifier=ffsync
+PrivateTmp=true
+ProtectSystem=strict
+ProtectHome=true
+ProtectKernelTunables=true
+ProtectControlGroups=true
+ProtectKernelModules=true
+InaccessiblePaths=/etc /home /opt /srv /var/local /var/mail
+RemoveIPC=true
+User=app
+Group=app
+WorkingDirectory=/data
+#Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target