mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 12:43:52 +00:00
b98cb9a770
svn path=/nixos/trunk/; revision=10720
31 lines
596 B
Nix
31 lines
596 B
Nix
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
|
|
|
|
# FIXME: Eventually we want to use inetd instead of using `-D'.
|
|
respawn ${bitlbee}/sbin/bitlbee -D -p ${portNumber} -i ${interface}
|
|
";
|
|
|
|
}
|