mirror of
https://github.com/woodchen-ink/webp_server_go.git
synced 2025-07-18 13:42:02 +08:00
Merge pull request #29 from webp-sh/systemd_fix
systemd service file update, close #27
This commit is contained in:
commit
119925e7f9
@ -6,13 +6,10 @@ 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
|
||||
|
@ -41,17 +41,15 @@ const sampleConfig = `
|
||||
}`
|
||||
const sampleSystemd = `
|
||||
[Unit]
|
||||
Description=WebP Server
|
||||
Description=WebP Server Go
|
||||
Documentation=https://github.com/webp-sh/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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user