aboutsummaryrefslogtreecommitdiffstats
path: root/main/bitlbee/bitlbee.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/bitlbee/bitlbee.initd')
-rw-r--r--main/bitlbee/bitlbee.initd29
1 files changed, 29 insertions, 0 deletions
diff --git a/main/bitlbee/bitlbee.initd b/main/bitlbee/bitlbee.initd
new file mode 100644
index 0000000000..b0ba0cc814
--- /dev/null
+++ b/main/bitlbee/bitlbee.initd
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+
+name=bitlbee
+daemon=/usr/sbin/$name
+
+. /etc/conf.d/$name
+
+depend() {
+ need net
+ after firewall
+}
+
+start() {
+ ebegin "Starting ${name}"
+ start-stop-daemon --start --quiet \
+ --pidfile /var/run/${name}.pid \
+ --chuid nobody:nobody \
+ --exec ${daemon} -- ${PORT} ${OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${name}"
+ start-stop-daemon --stop --quiet \
+ --pidfile /var/run/$name.pid \
+ --exec ${daemon}
+ eend $?
+}
+