rsyslog: change postrm to prerm

The systemd service can't be disabled if it already has been removed, thus disable it
prior to removing the package.

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
Anders Darander
2011-11-09 12:32:24 +00:00
committed by Koen Kooi
parent db658e9954
commit dd54be4a2f
+2 -2
View File
@@ -4,7 +4,7 @@ HOMEPAGE = "http://www.rsyslog.com/"
LICENSE = "GPLv3" LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=51d9635e646fb75e1b74c074f788e973" LIC_FILES_CHKSUM = "file://COPYING;md5=51d9635e646fb75e1b74c074f788e973"
INC_PR = "r0" INC_PR = "r1"
SRC_URI = "http://www.rsyslog.com/files/download/rsyslog/${PN}-${PV}.tar.gz \ SRC_URI = "http://www.rsyslog.com/files/download/rsyslog/${PN}-${PV}.tar.gz \
file://rsyslog.conf" file://rsyslog.conf"
@@ -25,7 +25,7 @@ pkg_postinst_${PN} () {
systemctl enable rsyslog.service systemctl enable rsyslog.service
} }
pkg_postrm_${PN} () { pkg_prerm_${PN} () {
systemctl disable rsyslog.service systemctl disable rsyslog.service
} }