diff --git a/systemd/README.md b/systemd/README.md new file mode 100644 index 0000000..0f674c7 --- /dev/null +++ b/systemd/README.md @@ -0,0 +1,24 @@ +Copy required service file into /lib/systemd/system +To make the network-online.target available (required by HB service files) +systemctl enable systemd-networkd-wait-online.service + + +Example HB confbridge service + +Enable the service at boot +systemctl enable hb_confbridge.service + +Check the status of the service +systemctl status hb_confbridge.service + +Start the service if stopped +systemctl start hb_confbridge.service + +Restart the service +systemctl restart hb_confbridge.service + +Stop the service if running +systemctl stop hb_confbridge.service + +Disable starting the service at boot +systemctl disable hb_confbridge.service diff --git a/systemd/hb_bridge_all.service b/systemd/hb_bridge_all.service new file mode 100644 index 0000000..8aafbde --- /dev/null +++ b/systemd/hb_bridge_all.service @@ -0,0 +1,21 @@ +[Unit] +Description=HB bridge all Service +# Description=Place this file in /lib/systemd/system +# Description=N4IRS 04/20/2018 + +# To make the network-online.target available +# systemctl enable systemd-networkd-wait-online.service + +After=network-online.target syslog.target +Wants=network-online.target + +[Service] +StandardOutput=null +WorkingDirectory=/opt/HBlink +RestartSec=3 +ExecStart=/usr/bin/python /opt/HBlink/hb_bridge_all.py +Restart=on-abort + +[Install] +WantedBy=multi-user.target + diff --git a/systemd/hb_confbridge.service b/systemd/hb_confbridge.service new file mode 100644 index 0000000..6394e09 --- /dev/null +++ b/systemd/hb_confbridge.service @@ -0,0 +1,21 @@ +[Unit] +Description=HB bridge conference bridge Service +# Description=Place this file in /lib/systemd/system +# Description=N4IRS 04/20/2018 + +# To make the network-online.target available +# systemctl enable systemd-networkd-wait-online.service + +After=network-online.target syslog.target +Wants=network-online.target + +[Service] +StandardOutput=null +WorkingDirectory=/opt/HBlink +RestartSec=3 +ExecStart=/usr/bin/python /opt/HBlink/hb_confbridge.py +Restart=on-abort + +[Install] +WantedBy=multi-user.target +