nixpkgs/upstart-jobs/hal.nix
Eelco Dolstra 4d4387a70e * Allow jobs to specify groups.
svn path=/nixos/trunk/; revision=8862
2007-06-10 20:13:12 +00:00

37 lines
506 B
Nix

{stdenv, hal}:
{
name = "hal";
users = [
{ name = "haldaemon";
uid = (import ../system/ids.nix).uids.haldaemon;
description = "HAL daemon user";
}
];
groups = [
{ name = "haldaemon";
gid = (import ../system/ids.nix).gids.haldaemon;
}
];
extraPath = [hal];
job = "
description \"HAL daemon\"
start on dbus
stop on shutdown
start script
mkdir -m 0755 -p /var/cache/hald
end script
respawn ${hal}/sbin/hald --daemon=no --verbose=yes
";
}