From 77f51e35092b9330766f72b4975e4f2cfadc45c6 Mon Sep 17 00:00:00 2001 From: Florian Date: Wed, 19 Apr 2017 23:17:09 +0200 Subject: [PATCH 1/2] New service Implement BOSWatch as systemctl-service --- service/boswatch.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 service/boswatch.service diff --git a/service/boswatch.service b/service/boswatch.service new file mode 100644 index 0000000..80c440b --- /dev/null +++ b/service/boswatch.service @@ -0,0 +1,11 @@ +[Unit] +Description=BOSWatch +After=multi-user.target + +[Service] +Type=simple +ExecStart=/usr/bin/python /opt/boswatch/boswatch.py -f 123.45M -a POC512 +Restart=on-abort + +[Install] +WantedBy=multi-user.target From a2b7cb3b56590ee68adb97a974a70addffb9a244 Mon Sep 17 00:00:00 2001 From: Florian Date: Wed, 19 Apr 2017 23:22:22 +0200 Subject: [PATCH 2/2] Update README.md Adapt it to the new service --- service/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/service/README.md b/service/README.md index 3057ee4..41337a9 100644 --- a/service/README.md +++ b/service/README.md @@ -1,3 +1,20 @@ +### Use BOSWatch as service ### + +Old description below + +We assume that BOSWatch is installed to /opt/boswatch! Otherwise you need to adapt all the pathes in this description and in the service-file itself. + +#### Adapt the script +Enter the frequency and the decoder(s) you want to use in line 7; you can add more specific switches if you need to + +### Install the service +1. Copy the file to /lib/systemd/system: sudo cp /opt/boswatch/service/boswatch.service /lib/systemd/system/ +2. Change the rights: sudo chmod 644 /lib/systemd/system/boswatch.service +3. Enable the service: sudo systemcl enable boswatch.service +4. Start the service: sudo systemcl start boswatch.service + +--- + ### Start BOSWatch as a daemon ##### Changing the init script