aports/community/bitlbee/bitlbee.initd
Drew DeVault c51e5129f3 community/bitlbee: move from main
I see no reason for this to be in main.
2022-04-06 19:27:05 +00:00

20 lines
409 B
Bash

#!/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"
}