2008-02-18 10:15:10 +01:00
|
|
|
args: with args;
|
|
|
|
{
|
|
|
|
name = "bitlbee";
|
|
|
|
|
|
|
|
users = [
|
|
|
|
{ name = "bitlbee";
|
|
|
|
uid = (import ../system/ids.nix).uids.bitlbee;
|
|
|
|
description = "BitlBee user";
|
|
|
|
home = "/var/empty";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
job = "
|
|
|
|
description \"BitlBee IRC to other chat networks gateway\"
|
|
|
|
|
|
|
|
start on network-interfaces/started
|
|
|
|
stop on network-interfaces/stop
|
|
|
|
|
|
|
|
start script
|
|
|
|
if ! test -d /var/lib/bitlbee
|
|
|
|
then
|
|
|
|
mkdir -p /var/lib/bitlbee
|
|
|
|
fi
|
|
|
|
end script
|
|
|
|
|
2008-03-26 08:42:44 +01:00
|
|
|
# FIXME: Eventually we want to use inetd instead of using `-F'.
|
|
|
|
respawn ${bitlbee}/sbin/bitlbee -F -p ${portNumber} -i ${interface}
|
2008-02-18 10:15:10 +01:00
|
|
|
";
|
|
|
|
|
|
|
|
}
|