summaryrefslogtreecommitdiff
path: root/geomyidae-git/service
diff options
context:
space:
mode:
Diffstat (limited to 'geomyidae-git/service')
-rw-r--r--geomyidae-git/service20
1 files changed, 20 insertions, 0 deletions
diff --git a/geomyidae-git/service b/geomyidae-git/service
new file mode 100644
index 0000000..41da8eb
--- /dev/null
+++ b/geomyidae-git/service
@@ -0,0 +1,20 @@
+[Unit]
+Description=A gopher server daemon
+Documentation=man:geomyidae(8)
+After=network.target network-online.target nss-lookup.target
+
+[Service]
+Type=forking
+WorkingDirectory=/srv/gopher
+ProtectSystem=strict
+ProtectHome=true
+MemoryDenyWriteExecute=true
+SystemCallArchitectures=native
+NoNewPrivileges=true
+StandardOutput=syslog
+SyslogIdentifier=geomyidae
+EnvironmentFile=-/etc/conf.d/geomyidae
+ExecStart=/usr/bin/geomyidae -c -l stdout -u geomyidae -g geomyidae $GEOMYIDAE_ARGS
+
+[Install]
+WantedBy=multi-user.target