finish 279 Bytes
Newer Older
1 2 3 4
#!/bin/sh

# Never run if systemd is running; it will do this.
[ -f /bin/systemctl ] && /bin/systemctl show-environment >/dev/null 2>&1 \
5
    && (sv down pubsubd ; exit 0)
6 7 8 9

if [ -f /etc/init.d/pubsubd ]; then
    exec /etc/init.d/pubsubd stop
else
10
    sv down pubsubd
11 12 13
fi

exit 0