summarylogtreecommitdiffstats
path: root/gofish.service
blob: 29109914c28486586375771ce56c074085f1ca92 (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 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