webp_server_go/webps.service
muzi 3380f63af5
Add systemd unit file webps.service (#3)
* Add systemd unit file webps.service

* Update webps.service
2020-02-26 19:25:19 +08:00

19 lines
388 B
Desktop File

[Unit]
Description=WebP Server
Documentation=https://github.com/n0vad3v/webp_server_go
After=nginx.target
[Service]
Type=simple
StandardError=journal
AmbientCapabilities=CAP_NET_BIND_SERVICE
WorkingDirectory=/opt/webps
ExecStart=/opt/webps/webp-server --config /opt/webps/config.json
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
RestartSec=3s
[Install]
WantedBy=multi-user.target