Changeset 2589 for trunk/packages
- Timestamp:
- Dec 5, 2009, 5:31:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-dev/debian/invirt-dev.init
r2565 r2589 17 17 GEN_FILES=/srv/repository/conf/distributions 18 18 19 . /lib/init/std-init.sh 19 20 . /lib/init/gen-files.sh 20 21 21 case "$1" in 22 start|reload|force-reload|restart) 23 log_begin_msg "Reloading config for $PACKAGE" 24 gen_files 25 reprepro-env export 26 invirt-build-conf 27 log_end_msg $? 28 ;; 29 stop) 30 ;; 31 *) 32 log_success_msg "Usage: /etc/init.d/$NAME {start|reload|force-reload|restart|stop}" 33 ;; 34 esac 22 do_start() 23 { 24 # Return 25 # 0 if daemon has been started 26 # 1 if daemon was already running 27 # 2 if daemon could not be started 28 ret=0 29 gen_files || ret=2 30 reprepro-env export || ret=2 31 invirt-build-conf || ret=2 32 33 return $ret 34 } 35 36 do_stop() 37 { 38 } 39 40 do_reload() 41 { 42 do_start 43 }
Note: See TracChangeset
for help on using the changeset viewer.