diff --git a/init/webps.service b/init/webps.service index e35839a..da6ca21 100644 --- a/init/webps.service +++ b/init/webps.service @@ -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 diff --git a/webp-server.go b/webp-server.go index 6edb880..0a2e3d1 100644 --- a/webp-server.go +++ b/webp-server.go @@ -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