diff options
author | Janne Heß | 2016-06-05 17:09:56 +0200 |
---|---|---|
committer | Janne Heß | 2016-06-05 17:10:46 +0200 |
commit | ba79d60be040e45740595b1732de49d997f845fc (patch) | |
tree | 734dffdf013d2e06cc4761ae19b561321ec363d8 /gofish-www.service | |
parent | 096133ed8769e51eca3f0f53fd29b1075d7915c4 (diff) | |
download | aur-gofish.tar.gz |
Update for systemd and fix a lot of stuff
Diffstat (limited to 'gofish-www.service')
-rw-r--r-- | gofish-www.service | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gofish-www.service b/gofish-www.service new file mode 100644 index 000000000000..e4d9b90a6926 --- /dev/null +++ b/gofish-www.service @@ -0,0 +1,23 @@ +[Unit] +Description=Gofish WWW Daemon + +[Service] +# Allow modifying settings +Environment=MAXCONNS=25 +Environment=CONFIG=/etc/gofish/gofish-www.conf +EnvironmentFile=-/etc/conf.d/gofish-www + +Type=forking +ExecStart=/usr/bin/gofish -d -c $CONFIG -m $MAXCONNS +PIDFile=/run/gofish/gofish-www.pid +# Lock process down +ReadOnlyDirectories=/srv/gopher +PrivateTmp=true +PrivateDevices=true +ProtectHome=true +ProtectSystem=full +RuntimeDirectory=gofish +RuntimeDirectoryMode=700 + +[Install] +WantedBy=multi-user.target |