[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