From a6733054503ccb3ab07a44325d3eafa42834f0f7 Mon Sep 17 00:00:00 2001 From: John Hays Date: Sat, 6 Jan 2024 17:27:32 -0800 Subject: [PATCH] Service File --- util/dsgwdashboard.service | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 util/dsgwdashboard.service 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