1 # For a package which only configures another, "parent" package.
5 # GEN_FILES=(files to generate)
6 # PARENTPACKAGE=(parent-package another-parent-package)
7 # . /lib/init/config-init.sh
10 # PACKAGE - name to appear in log message
11 # GEN_FILES - files to be generated with gen-files.sh
12 # PARENTPACKAGE - packages to receive start, etc, commands passed through
14 # Global variables GEN_FILES, PARENTPACKAGE may be unset for zero
15 # values, or scalars for one. If run under sh, they cannot be arrays.
18 . /lib/lsb/init-functions
19 . /lib/init/gen-files.sh
21 if [ $BASH_VERSION ]; then
23 for p in "${PARENTPACKAGE[@]}"; do
29 if [ -n "$PARENTPACKAGE" ]; then
30 invoke-rc.d "$PARENTPACKAGE" "$1"
37 start|reload|force-reload|restart)
38 log_begin_msg "Reloading config for $PACKAGE"
47 log_success_msg "Usage: /etc/init.d/$PACKAGE {start|reload|force-reload|restart|stop}"