13 lines
507 B
Bash
Executable File
13 lines
507 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
# Automatically added by dh_installsystemd/13.6ubuntu1
|
|
if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = remove ] && [ -d /run/systemd/system ] ; then
|
|
deb-systemd-invoke stop 'cups.path' 'cups.service' 'cups.socket' >/dev/null || true
|
|
fi
|
|
# End automatically added section
|
|
# Automatically added by dh_installinit/13.6ubuntu1
|
|
if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = remove ] && [ -x "/etc/init.d/cups" ] ; then
|
|
invoke-rc.d --skip-systemd-native cups stop || exit 1
|
|
fi
|
|
# End automatically added section
|