mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
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}
|
|
";
|
|
}
|