Ignore:
Timestamp:
Dec 5, 2009, 5:31:51 PM (15 years ago)
Author:
broder
Message:

Switch to using std-init in invirt-dev.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-dev/debian/invirt-dev.init

    r2565 r2589  
    1717GEN_FILES=/srv/repository/conf/distributions
    1818
     19. /lib/init/std-init.sh
    1920. /lib/init/gen-files.sh
    2021
    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
     22do_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
     36do_stop()
     37{
     38}
     39
     40do_reload()
     41{
     42    do_start
     43}
Note: See TracChangeset for help on using the changeset viewer.