diff --git a/webps.service b/webps.service new file mode 100644 index 0000000..4437d96 --- /dev/null +++ b/webps.service @@ -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