mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
d28ecc593f
svn path=/nixos/trunk/; revision=12031
39 lines
591 B
Nix
39 lines
591 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
|
|
|
|
# !!! quick hack: wait until dbus has started
|
|
sleep 3
|
|
|
|
mkdir -m 0755 -p /var/cache/hald
|
|
|
|
end script
|
|
|
|
respawn ${hal}/sbin/hald --daemon=no
|
|
'';
|
|
|
|
}
|