summarylogtreecommitdiffstats
path: root/gofish.service
diff options
context:
space:
mode:
Diffstat (limited to 'gofish.service')
-rw-r--r--gofish.service23
1 files changed, 23 insertions, 0 deletions
diff --git a/gofish.service b/gofish.service
new file mode 100644
index 000000000000..29109914c284
--- /dev/null
+++ b/gofish.service
@@ -0,0 +1,23 @@
+[Unit]
+Description=Gofish Gopher Daemon
+
+[Service]
+# Allow modifying settings
+Environment=MAXCONNS=25
+Environment=CONFIG=/etc/gofish/gofish.conf
+EnvironmentFile=-/etc/conf.d/gofish
+
+Type=forking
+ExecStart=/usr/bin/gofish -d -c $CONFIG -m $MAXCONNS
+PIDFile=/run/gofish/gofish.pid
+# Lock process down
+ReadOnlyDirectories=/srv/gopher
+PrivateTmp=true
+PrivateDevices=true
+ProtectHome=true
+ProtectSystem=full
+RuntimeDirectory=gofish
+RuntimeDirectoryMode=700
+
+[Install]
+WantedBy=multi-user.target