]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
rsyslog: Don't automatically enable this service anymore.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 29 Jul 2012 13:06:01 +0000 (15:06 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 29 Jul 2012 17:02:19 +0000 (19:02 +0200)
As a result after the movement to journald as logging daemon we don't
want to autostart the rsyslog after reboot.

Fixes #10199.

rsyslog/rsyslog.nm

index 70ceb9499b79fbd6108aa8439ef87236c34c7471..1956a38d224aa7748c3b368196cc642d5a2db027 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = rsyslog
 version    = 5.8.6
-release    = 3
+release    = 4
 
 groups     = System/Daemons
 url        = http://www.rsyslog.com/
@@ -74,8 +74,6 @@ packages
                                [ -f "${n}" ] && continue
                                umask 066 && touch ${n}
                        done
-
-                       /bin/systemctl enable rsyslog.service >/dev/null 2>&1 || :
                end
 
                script preun
@@ -87,9 +85,12 @@ packages
                        /bin/systemctl daemon-reload >/dev/null 2>&1 || :
                end
 
+               # Disable and stop rsyslog after update, because we use the
+               # journal daemon from systemd from now.
                script postup
                        /bin/systemctl daemon-reload >/dev/null 2>&1 || :
-                       /bin/systemctl try-restart rsyslog.service >/dev/null 2>&1 || :
+                       /bin/systemctl disable rsyslog.service >/dev/null 2>&1 || :
+                       /bin/systemctl stop rsyslog.service >/dev/null 2>&1 || :
                end
        end