postinst is in cgmanager 0.24-0ubuntu7.1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #!/bin/sh
set -e
# Automatically added by dh_installinit
if [ -x "/etc/init.d/cgmanager" ] || [ -e "/etc/init/cgmanager.conf" ]; then
if [ ! -e "/etc/init/cgmanager.conf" ]; then
update-rc.d cgmanager defaults >/dev/null
fi
invoke-rc.d cgmanager start || exit $?
fi
# End automatically added section
# Automatically added by dh_installinit
update-rc.d -f cgmanager remove >/dev/null || exit $?
# End automatically added section
# Automatically added by dh_installinit
if [ -x "/etc/init.d/cgproxy" ] || [ -e "/etc/init/cgproxy.conf" ]; then
if [ ! -e "/etc/init/cgproxy.conf" ]; then
update-rc.d cgproxy defaults >/dev/null
fi
invoke-rc.d cgproxy start || exit $?
fi
# End automatically added section
# Automatically added by dh_installinit
update-rc.d -f cgproxy remove >/dev/null || exit $?
# End automatically added section
|