16 lines
380 B
Bash
16 lines
380 B
Bash
#! /bin/bash
|
|
|
|
#echo "DEBUG: Executing pre-remove script, swarmops-backend"
|
|
|
|
# Different paths for systemd and upstart
|
|
|
|
if [ -z $(pidof systemd) ]; then
|
|
update-rc.d -f swarmops-backend remove > /dev/null
|
|
/etc/init.d/swarmops-backend stop
|
|
else
|
|
systemctl stop swarmops-backend
|
|
systemctl disable swarmops-backend
|
|
fi
|
|
|
|
#echo "DEBUG: Exiting pre-remove script, swarmops-backend"
|