14 lines
241 B
Bash
14 lines
241 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
case "$1" in
|
|
remove|upgrade|deconfigure)
|
|
if command -v systemctl >/dev/null 2>&1; then
|
|
systemctl stop grotti.service 2>/dev/null || true
|
|
systemctl disable grotti.service 2>/dev/null || true
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
exit 0
|