summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--snowball.service14
2 files changed, 18 insertions, 0 deletions
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