1 2 3 4 5 6 7 8 9 10 11 12 13 14
post_install() { systemctl start mandb-ondemand.path } pre_remove() { systemctl stop mandb-ondemand.path } pre_upgrade() { # stop orphaned service as 2.02 no longer supplies this if [ "`vercmp $2 2.02`" -lt 0 ]; then systemctl stop mandb-ondemand-purge.path fi }