diff --git a/service/status-server.service b/service/status-server.service new file mode 100644 index 0000000..7298f58 --- /dev/null +++ b/service/status-server.service @@ -0,0 +1,10 @@ +[Unit] +Description=ServerStatus-Server +After=network.target +[Service] +EnvironmentFile=/usr/local/ServerStatus/server/config.conf +ExecStart=/root/ServerStatus/server/sergate --config=config.json --web-dir=/var/www/html +ExecReload=/bin/kill -HUP $MAINPID +Restart=on-failure +[Install] +WantedBy=multi-user.target \ No newline at end of file