[Lunar-commits] <moonbase-other> bitlbee: handle systemd unit files correctly
Stefan Wold
ratler at lunar-linux.org
Mon Dec 9 20:08:35 CET 2013
commit 71895731d846d8077df739d586a4ac5a2b2e335e
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Mon, 09 Dec 2013 11:07:58 -0800
URL: https://github.com/lunar-linux/moonbase-other/commit/71895731d846d8077df739d586a4ac5a2b2e335e
bitlbee: handle systemd unit files correctly
---
chat/bitlbee/BUILD | +5/-7
chat/bitlbee/systemd.d/bitlbee.service | +9/-0
chat/bitlbee/systemd.d/bitlbee.socket | +9/-0
chat/bitlbee/systemd.d/bitlbee at .service | +8/-0
4 files changed, 31 insertions(+), 7 deletions(-)
--- a/chat/bitlbee/BUILD
+++ b/chat/bitlbee/BUILD
@@ -1,7 +1,5 @@
-(
-
- OPTS+=" --etcdir=/etc/bitlbee"
- default_build &&
- make install-etc
-
-) > $C_FIFO 2>&1
+# systemdsystemunitdir=no is no because we want to install the unit files
+# using the lunar way
+OPTS+=" --etcdir=/etc/bitlbee --systemdsystemunitdir=no"
+default_build &&
+make install-etc
--- /dev/null
+++ b/chat/bitlbee/systemd.d/bitlbee.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=BitlBee IRC/IM gateway
+After=syslog.target
+
+[Service]
+ExecStart=/usr/sbin/bitlbee -F -n
+
+[Install]
+WantedBy=multi-user.target
--- /dev/null
+++ b/chat/bitlbee/systemd.d/bitlbee.socket
@@ -0,0 +1,9 @@
+[Unit]
+Conflicts=bitlbee.service
+
+[Socket]
+ListenStream=127.0.0.1:6667
+Accept=yes
+
+[Install]
+WantedBy=sockets.target
--- /dev/null
+++ b/chat/bitlbee/systemd.d/bitlbee at .service
@@ -0,0 +1,8 @@
+[Unit]
+Description=BitlBee Per-Connection Server
+After=syslog.target
+
+[Service]
+ExecStart=/usr/sbin/bitlbee -I
+StandardInput=socket
+User=bitlbee
More information about the Lunar-commits
mailing list