From d370d70ac7afb9746687b86063ba29992733fd5a Mon Sep 17 00:00:00 2001 From: liamcottle Date: Wed, 27 Nov 2024 20:33:09 +1300 Subject: [PATCH] add systemd service file --- meshtxt.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 meshtxt.service diff --git a/meshtxt.service b/meshtxt.service new file mode 100644 index 0000000..ce49361 --- /dev/null +++ b/meshtxt.service @@ -0,0 +1,16 @@ +[Unit] +Description=meshtxt +After=network.target +StartLimitIntervalSec=0 + +[Service] +Type=simple +Restart=always +RestartSec=1 +User=root +Group=root +WorkingDirectory=/home/liamcottle/meshtxt +ExecStart=/usr/bin/env node /home/liamcottle/meshtxt/server.js --port 80 + +[Install] +WantedBy=multi-user.target