Add our own syslog-ng service file for now
authorPeter Palfrader <peter@palfrader.org>
Fri, 5 Dec 2014 21:57:36 +0000 (22:57 +0100)
committerPeter Palfrader <peter@palfrader.org>
Fri, 5 Dec 2014 21:57:36 +0000 (22:57 +0100)
modules/syslog-ng/files/syslog-ng.service [new file with mode: 0644]
modules/syslog-ng/manifests/init.pp

diff --git a/modules/syslog-ng/files/syslog-ng.service b/modules/syslog-ng/files/syslog-ng.service
new file mode 100644 (file)
index 0000000..4d8fa2b
--- /dev/null
@@ -0,0 +1,15 @@
+[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
index 0e414b6..1781e9b 100644 (file)
@@ -29,4 +29,13 @@ class syslog-ng {
                        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'],
+               }
+       }
 }