summarylogtreecommitdiffstats
path: root/gofish-www.service
blob: e4d9b90a69264d59ab4603cc03e71e1d3138525a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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