14 lines
260 B
Bash
14 lines
260 B
Bash
#! /bin/bash
|
|
|
|
# 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
|
|
|
|
|