1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 00:54:46 +00:00
nixpkgs/upstart-jobs/hal.nix

37 lines
506 B
Nix
Raw Normal View History

{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
";
}