1 # For a package which only configures another, "parent" package.
3 # Global variable PARENTPACKAGE names parent; unset for no parent,
4 # array for (zero or one or) many parents.
6 # Global variable PACKAGE names this package, for log message.
8 # If BASH_VERSION is null or unset, accepts only one parent in
9 # PARENTPACKAGE, or empty for zero.
12 . /lib/lsb/init-functions
13 . /lib/init/gen-files.sh
15 if [ $BASH_VERSION ]; then
17 for p in "${PARENTPACKAGE[@]}"; do
23 if [ -n "$PARENTPACKAGE" ]; then
24 invoke-rc.d "$PARENTPACKAGE" "$1"
31 start|reload|force-reload|restart)
32 log_begin_msg "Reloading config for $PACKAGE"
41 log_success_msg "Usage: /etc/init.d/$PACKAGE {start|reload|force-reload|restart|stop}"