aboutsummaryrefslogtreecommitdiffstats
path: root/community/bitlbee/bitlbee.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/bitlbee/bitlbee.initd')
-rw-r--r--community/bitlbee/bitlbee.initd19
1 files changed, 19 insertions, 0 deletions
diff --git a/community/bitlbee/bitlbee.initd b/community/bitlbee/bitlbee.initd
new file mode 100644
index 00000000000..a620c4b61d8
--- /dev/null
+++ b/community/bitlbee/bitlbee.initd
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+name="bitlbee"
+description="bitlbee irc service"
+supervisor=supervise-daemon
+BITLBEE_USER=${BITLBEE_USER:-bitlbee}
+LOGS=/var/log/bitlbee.log
+supervise_daemon_args="-1 $LOGS -2 $LOGS"
+command="/usr/bin/bitlbee"
+command_args="-n"
+command_user="$BITLBEE_USER:$BITLBEE_USER"
+
+depend() {
+ need net
+ after firewall
+}
+
+start_pre() {
+ checkpath -f "$LOGS" -m 644 -o "$BITLBEE_USER:$BITLBEE_USER"
+}