3979844e22
svn path=/nixos/trunk/; revision=11436
24 lines
369 B
Nix
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}
|
|
";
|
|
}
|