The systemd service can't be disabled if it already has been removed, thus disable it
prior to removing the package.
(From meta-openembedded rev:
dd54be4a2fc0f0597a82525fcb97c69539a547c4)
Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
LICENSE = "GPLv3"
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 \
file://rsyslog.conf"
systemctl enable rsyslog.service
}
-pkg_postrm_${PN} () {
+pkg_prerm_${PN} () {
systemctl disable rsyslog.service
}