2007-06-09 21:05:04 +01:00
|
|
|
{stdenv, hal}:
|
|
|
|
|
|
|
|
{
|
|
|
|
name = "hal";
|
|
|
|
|
|
|
|
users = [
|
|
|
|
{ name = "haldaemon";
|
|
|
|
uid = (import ../system/ids.nix).uids.haldaemon;
|
|
|
|
description = "HAL daemon user";
|
2007-06-10 21:13:12 +01:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
groups = [
|
|
|
|
{ name = "haldaemon";
|
|
|
|
gid = (import ../system/ids.nix).gids.haldaemon;
|
2007-06-09 21:05:04 +01:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
extraPath = [hal];
|
|
|
|
|
2008-03-22 16:05:01 +00:00
|
|
|
job = ''
|
|
|
|
description "HAL daemon"
|
2007-06-09 21:05:04 +01:00
|
|
|
|
2008-03-22 16:05:01 +00:00
|
|
|
start on dbus
|
|
|
|
stop on shutdown
|
2007-06-09 21:05:04 +01:00
|
|
|
|
2008-03-22 16:05:01 +00:00
|
|
|
start script
|
2007-06-09 21:05:04 +01:00
|
|
|
|
2008-03-22 16:05:01 +00:00
|
|
|
# !!! quick hack: wait until dbus has started
|
|
|
|
sleep 3
|
2007-06-09 21:05:04 +01:00
|
|
|
|
2008-03-22 16:05:01 +00:00
|
|
|
mkdir -m 0755 -p /var/cache/hald
|
2007-06-09 21:05:04 +01:00
|
|
|
|
2008-03-22 16:05:01 +00:00
|
|
|
end script
|
|
|
|
|
|
|
|
respawn ${hal}/sbin/hald --daemon=no --verbose=yes
|
|
|
|
'';
|
2007-06-09 21:05:04 +01:00
|
|
|
|
|
|
|
}
|