- Timestamp:
- Oct 24, 2008, 7:10:26 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-console-host/debian/invirt-console-host.init
r1198 r1212 1 #! /bin/ sh1 #! /bin/bash 2 2 ### BEGIN INIT INFO 3 3 # Provides: invirt-console-host … … 12 12 PACKAGE=invirt-console-host 13 13 PARENTPACKAGE=conserver-server 14 GEN_FILES=/etc/conserver/invirt-genconfig.cf 14 15 15 16 dpkg -s "$PACKAGE" >/dev/null 2>/dev/null || exit 0 16 17 17 . /lib/init/vars.sh 18 . /lib/lsb/init-functions 19 20 gen_config() 21 { 22 for i in /etc/conserver/invirt-genconfig.cf 23 do mako-render $i.mako > $i 24 done 25 } 26 27 case "$1" in 28 start|reload|force-reload|restart) 29 log_begin_msg "Reloading config for $PACKAGE" 30 gen_config 31 log_end_msg $? 32 /etc/init.d/"$PARENTPACKAGE" "$1" 33 ;; 34 stop) 35 /etc/init.d/"$PARENTPACKAGE" "$1" 36 ;; 37 *) 38 log_success_msg "Usage: /etc/init.d/$PACKAGE {start|reload|force-reload|restart|stop}" 39 ;; 40 esac 18 . /lib/init/config-init.sh 19 config_init $1
Note: See TracChangeset
for help on using the changeset viewer.