1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
post_install() { # Load service file systemctl --quiet daemon-reload } post_upgrade() { # Reload service file systemctl --quiet daemon-reload } pre_remove() { # Stop service systemctl --quiet --no-reload disable --now torrserver.service } post_remove() { # Unload service systemctl --quiet daemon-reload }