nixpkgs/upstart-jobs/syslogd.nix
Eelco Dolstra 3979844e22 * Purify syslog.conf (it doesn't have to be in /etc).
svn path=/nixos/trunk/; revision=11436
2008-04-01 12:50:47 +00:00

24 lines
369 B
Nix

{sysklogd, writeText}:
let
syslogConf = writeText "syslog.conf" ''
*.* /dev/tty10
*.=warning;*.=err -/var/log/warn
*.crit /var/log/warn
*.* -/var/log/messages
'';
in
{
name = "syslogd";
job = "
start on udev
stop on shutdown
respawn ${sysklogd}/sbin/syslogd -n -f ${syslogConf}
";
}