Files
unpoller-unpoller-4/scripts/before-remove.sh
David Newhall II 9d39416824 more small fixes
2021-03-15 01:53:09 -07:00

18 lines
455 B
Bash
Executable File

#!/bin/bash
# This file is used by rpm and deb packages. FPM use.
# Edit this file as needed for your application.
# This file is only installed if FORMULA is set to service.
if [ "$1" = "upgrade" ] || [ "$1" = "1" ] ; then
exit 0
fi
if [ -x "/bin/systemctl" ]; then
/bin/systemctl stop {{BINARY}}
/bin/systemctl disable {{BINARY}}
elif [ -x /usr/sbin/service ]; then
/usr/sbin/service {{BINARY}} stop
/usr/sbin/service {{BINARY}} disable
fi