diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-09-10 13:18:13 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-09-12 14:16:49 +0200 |
commit | 65d3cc77539c565215e067ff5447f6d1cbab21e4 (patch) | |
tree | e55b6c5a99a25c5f0981fdb8c24fc072da4bf04e /contrib | |
parent | 17577b7c00d4748d318034ca2babe54b8b8f769d (diff) |
Install systemd services with autotools
Change-Id: I87299134696bbfc6721b1226d4de6c73854aa846
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/Makefile.am | 1 | ||||
-rw-r--r-- | contrib/sysmobts.service | 20 | ||||
-rw-r--r-- | contrib/systemd/Makefile.am | 18 | ||||
-rw-r--r-- | contrib/systemd/lc15bts-mgr.service (renamed from contrib/lc15bts-mgr.service) | 0 | ||||
-rw-r--r-- | contrib/systemd/osmo-bts-lc15.service (renamed from contrib/osmo-bts-lc15.service) | 0 | ||||
-rw-r--r-- | contrib/systemd/osmo-bts-sysmo.service (renamed from contrib/osmo-bts-sysmo.service) | 0 | ||||
-rw-r--r-- | contrib/systemd/sysmobts-mgr.service (renamed from contrib/sysmobts-mgr.service) | 0 |
7 files changed, 19 insertions, 20 deletions
diff --git a/contrib/Makefile.am b/contrib/Makefile.am new file mode 100644 index 00000000..3439c97b --- /dev/null +++ b/contrib/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = systemd diff --git a/contrib/sysmobts.service b/contrib/sysmobts.service deleted file mode 100644 index 64e01271..00000000 --- a/contrib/sysmobts.service +++ /dev/null @@ -1,20 +0,0 @@ -[Unit] -Description=sysmocom sysmoBTS - -[Service] -Type=simple -ExecStartPre=/bin/sh -c 'echo 0 > /sys/class/leds/activity_led/brightness' -ExecStart=/usr/bin/osmo-bts-sysmo -s -c /etc/osmocom/osmo-bts.cfg -M -ExecStopPost=/bin/sh -c 'echo 0 > /sys/class/leds/activity_led/brightness' -ExecStopPost=/bin/sh -c 'cat /lib/firmware/sysmobts-v?.bit > /dev/fpgadl_par0 ; sleep 3s; cat /lib/firmware/sysmobts-v?.out > /dev/dspdl_dm644x_0; sleep 1s' -Restart=always -RestartSec=2 -RestartPreventExitStatus=1 - -# The msg queues must be read fast enough -CPUSchedulingPolicy=rr -CPUSchedulingPriority=1 - -[Install] -WantedBy=multi-user.target -Alias=osmo-bts-sysmo.service diff --git a/contrib/systemd/Makefile.am b/contrib/systemd/Makefile.am new file mode 100644 index 00000000..16463087 --- /dev/null +++ b/contrib/systemd/Makefile.am @@ -0,0 +1,18 @@ +if HAVE_SYSTEMD +SYSTEMD_SERVICES = osmo-bts-virtual.service + +if ENABLE_SYSMOBTS +SYSTEMD_SERVICES += osmo-bts-sysmo.service sysmobts-mgr.service +endif + +if ENABLE_TRX +SYSTEMD_SERVICES += osmo-bts-trx.service +endif + +if ENABLE_LC15BTS +SYSTEMD_SERVICES += osmo-bts-lc15.service lc15bts-mgr.service +endif + +EXTRA_DIST = $(SYSTEMD_SERVICES) +systemdsystemunit_DATA = $(SYSTEMD_SERVICES) +endif # HAVE_SYSTEMD diff --git a/contrib/lc15bts-mgr.service b/contrib/systemd/lc15bts-mgr.service index bf788e61..bf788e61 100644 --- a/contrib/lc15bts-mgr.service +++ b/contrib/systemd/lc15bts-mgr.service diff --git a/contrib/osmo-bts-lc15.service b/contrib/systemd/osmo-bts-lc15.service index 6aa9751f..6aa9751f 100644 --- a/contrib/osmo-bts-lc15.service +++ b/contrib/systemd/osmo-bts-lc15.service diff --git a/contrib/osmo-bts-sysmo.service b/contrib/systemd/osmo-bts-sysmo.service index 65b1f00b..65b1f00b 100644 --- a/contrib/osmo-bts-sysmo.service +++ b/contrib/systemd/osmo-bts-sysmo.service diff --git a/contrib/sysmobts-mgr.service b/contrib/systemd/sysmobts-mgr.service index 4346991d..4346991d 100644 --- a/contrib/sysmobts-mgr.service +++ b/contrib/systemd/sysmobts-mgr.service |