mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
3979844e22
svn path=/nixos/trunk/; revision=11436
25 lines
369 B
Nix
25 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}
|
|
";
|
|
}
|