diff --git a/util/dsgwdashboard.service b/util/dsgwdashboard.service new file mode 100644 index 0000000..aafaeca --- /dev/null +++ b/util/dsgwdashboard.service @@ -0,0 +1,18 @@ +[Unit] +Description=D-STAR Gateway Dashboard +After=network.target,network-online.target +Wants=network-online.target + +[Service] +User=root +Type=simple +WorkingDirectory=/usr/local/src/dsgwdashboard +ExecStart=/usr/bin/node index.js +Restart=on-failure +RestartSec=5 +StartLimitIntervalSec=60 +StartLimitBurst=0 +StandardOutput=syslog +StandardError=syslog +[Install] +WantedBy=multi-user.target