--- /dev/null
+[Unit]
+Description=System Logger Daemon
+Documentation=man:syslog-ng(8)
+
+[Service]
+Type=notify
+Sockets=syslog.socket
+ExecStart=/usr/sbin/syslog-ng -F
+ExecReload=/bin/kill -HUP $MAINPID
+StandardOutput=null
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
+Alias=syslog.service
require => Package['syslog-ng']
}
}
+ # while syslog-ng breaks on boot
+
+ if $systemd {
+ file { '/etc/systemd/system/syslog-ng.service':
+ ensure => $servicefiles,
+ source => 'puppet:///modules/syslog-ng/syslog-ng.service',
+ notify => Exec['systemctl daemon-reload'],
+ }
+ }
}