aboutsummaryrefslogtreecommitdiffstats
path: root/main/bitlbee/bitlbee.initd
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-01-21 21:03:25 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2011-01-21 21:03:25 -0600
commitc9b61c7acdd938205831fb72a20cdac82d7effd5 (patch)
tree4859c94d1c790a3d2715cf031c5ad6418b4da8d1 /main/bitlbee/bitlbee.initd
parent076b0e6a2f5c5aa8a576896fb1be98be05723179 (diff)
downloadaports-c9b61c7acdd938205831fb72a20cdac82d7effd5.tar.bz2
aports-c9b61c7acdd938205831fb72a20cdac82d7effd5.tar.xz
main/bitlbee: promote from testing
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 $?
+}
+