From 9551f44147615c883c945995fbfc1832678006a3 Mon Sep 17 00:00:00 2001 From: Roeland Jansen Date: Sat, 10 Feb 2024 12:41:32 +0100 Subject: [PATCH] added unit file, thanks to Mick VK3ADD, ref https://gitlab.com/eliggett/wfview/-/issues/96 --- systemd/README | 11 +++++++++++ systemd/wfserver.service | 12 ++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 systemd/README create mode 100644 systemd/wfserver.service diff --git a/systemd/README b/systemd/README new file mode 100644 index 0000000..0bb5f87 --- /dev/null +++ b/systemd/README @@ -0,0 +1,11 @@ + + +in order to be able to autostart wfserver, this simple unitfile made by +Mick VK3ADD, will help you. + +path and suggested name of the file: + + +/etc/systemd/system/wfserver.service + + diff --git a/systemd/wfserver.service b/systemd/wfserver.service new file mode 100644 index 0000000..4b42119 --- /dev/null +++ b/systemd/wfserver.service @@ -0,0 +1,12 @@ +[Unit] +Description=WF Server +After=network.target +StartLimitIntervalSec=0 +[Service] +Type=simple +Restart=always +RestartSec=1 +User=pi +ExecStart=/usr/local/bin/wfserver +[Install] +WantedBy=multi-user.target