From 4dbbb1650aacbfa8bae93245cf063f27a04378cf Mon Sep 17 00:00:00 2001 From: Kalle Vahlman Date: Wed, 14 Nov 2012 08:14:57 +0200 Subject: Add systemd service (uses the init.d script) --- Makefile | 4 ++++ snowball.service | 14 ++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 snowball.service diff --git a/Makefile b/Makefile index acac6d7..66c85cf 100644 --- a/Makefile +++ b/Makefile @@ -9,3 +9,7 @@ install: # install the upstart-style task to init/ install -d ${DESTDIR}/etc/init install -m 0664 snowball.conf ${DESTDIR}/etc/init/snowball.conf + + # install the systemd-style service to systemd/ + install -d ${DESTDIR}/etc/systemd/system + install -m 0664 snowball.service ${DESTDIR}/etc/systemd/system/snowball.service diff --git a/snowball.service b/snowball.service new file mode 100644 index 0000000..ab921f3 --- /dev/null +++ b/snowball.service @@ -0,0 +1,14 @@ +[Unit] +Description=ST-Ericsson Snowball init +Documentation=http://www.igloocommunity.org/support/Snowball-Init +Before=basic.target +Before=network.target +Before=bluetooth.target + +[Service] +ExecStart=/etc/init.d/snowball start +ExecReload=/etc/init.d/snowball restart +ExecStop=/etc/init.d/snowball stop + +[Install] +WantedBy=default.target -- cgit v1.2.3