mirror of
https://github.com/woodchen-ink/webp_server_go.git
synced 2025-07-18 13:42:02 +08:00
Add systemd unit file webps.service (#3)
* Add systemd unit file webps.service * Update webps.service
This commit is contained in:
parent
95b4443c13
commit
3380f63af5
18
webps.service
Normal file
18
webps.service
Normal file
@ -0,0 +1,18 @@
|
||||
[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
|
Loading…
x
Reference in New Issue
Block a user