* Quick hack to make HAL start properly.

svn path=/nixos/trunk/; revision=11262
This commit is contained in:
Eelco Dolstra 2008-03-22 16:05:01 +00:00
parent d6e1828c13
commit 3703cd13a2
2 changed files with 28 additions and 25 deletions

View File

@ -35,28 +35,28 @@ in
extraPath = [dbus.daemon dbus.tools];
job = "
description \"D-Bus system message bus daemon\"
job = ''
description "D-Bus system message bus daemon"
start on startup
stop on shutdown
start on startup
stop on shutdown
start script
start script
mkdir -m 0755 -p ${homeDir}
chown messagebus ${homeDir}
mkdir -m 0755 -p ${homeDir}
chown messagebus ${homeDir}
mkdir -m 0755 -p /var/lib/dbus
${dbus.tools}/bin/dbus-uuidgen --ensure
mkdir -m 0755 -p /var/lib/dbus
${dbus.tools}/bin/dbus-uuidgen --ensure
end script
end script
respawn
respawn
script
rm -f ${homeDir}/pid
exec ${dbus}/bin/dbus-daemon --config-file=${configFile}/system.conf
end script
";
script
rm -f ${homeDir}/pid
exec ${dbus}/bin/dbus-daemon --config-file=${configFile}/system.conf
end script
'';
}

View File

@ -18,19 +18,22 @@
extraPath = [hal];
job = "
description \"HAL daemon\"
job = ''
description "HAL daemon"
start on dbus
stop on shutdown
start on dbus
stop on shutdown
start script
start script
mkdir -m 0755 -p /var/cache/hald
# !!! quick hack: wait until dbus has started
sleep 3
end script
mkdir -m 0755 -p /var/cache/hald
respawn ${hal}/sbin/hald --daemon=no --verbose=yes
";
end script
respawn ${hal}/sbin/hald --daemon=no --verbose=yes
'';
}