nixpkgs/upstart-jobs/consolekit.nix
Sander van der Burg 525e4e961d Added console kit upstart job
svn path=/nixos/trunk/; revision=14839
2009-04-02 15:02:13 +00:00

25 lines
387 B
Nix

args: with args;
let
cfg = config.services.consolekit;
in
{
name = "consolekit";
job = ''
description "Console Kit Service"
start on dbus
stop on shutdown
start script
# !!! quick hack: wait until dbus has started
sleep 3
end script
respawn ${pkgs.ConsoleKit}/sbin/console-kit-daemon
'';
}