From 4d197c96d8ad80f1ea72be170ebcd233e6ba7c38 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 20 Sep 2012 15:24:50 +0200 Subject: systemd: Add a service for the sysmobts Migrate the LED and firmware reloading into a systemd service. This makes the respawn and screen obsolete as it will be done with systemd and the journal script. --- contrib/sysmobts.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 contrib/sysmobts.service (limited to 'contrib') diff --git a/contrib/sysmobts.service b/contrib/sysmobts.service new file mode 100644 index 00000000..88081416 --- /dev/null +++ b/contrib/sysmobts.service @@ -0,0 +1,11 @@ +[Unit] +Description=sysmocom sysmoBTS + +[Service] +Type=simple +ExecStartPre=/bin/sh -c 'echo 0 > /sys/class/leds/activity_led/brightness' +ExecStartPre=/bin/sh -c 'cat /lib/firmware/sysmobts-v?.out > /dev/dspdl_dm644x_0' +ExecStart=/usr/bin/sysmobts -s -c /etc/osmocom/osmo-bts.cfg +ExecStartPost=/bin/sh -c 'echo 0 > /sys/class/leds/activity_led/brightness' +Restart=always +RestartSec=2 -- cgit v1.2.3