Changeset 1742
- Timestamp:
- Nov 22, 2008, 5:36:24 AM (16 years ago)
- Location:
- trunk/packages/invirt-console-server/debian
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-console-server/debian/changelog
r1741 r1742 2 2 3 3 * Clean up the init script with some ideas from debathena-pyhesiodfs. 4 5 -- Evan Broder <broder@mit.edu> Sat, 22 Nov 2008 05:25:54 -0500 4 * Switch to using std-init. 5 6 -- Evan Broder <broder@mit.edu> Sat, 22 Nov 2008 05:26:22 -0500 6 7 7 8 invirt-console-server (0.1.0) unstable; urgency=low -
trunk/packages/invirt-console-server/debian/invirt-console-server.init
r1741 r1742 27 27 [ -x "$DAEMON" ] || exit 0 28 28 29 # Read configuration variable file if it is present 30 [ -r /etc/default/$NAME ] && . /etc/default/$NAME 31 32 # Load the VERBOSE setting and other rcS variables 33 . /lib/init/vars.sh 34 35 # Define LSB log_* functions. 36 # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. 37 . /lib/lsb/init-functions 29 . /lib/init/std-init.sh 38 30 39 31 gen_config() … … 98 90 } 99 91 100 case "$1" in 101 start) 102 [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" 103 do_start 104 case "$?" in 105 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 106 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; 107 esac 108 ;; 109 stop) 110 [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" 111 do_stop 112 case "$?" in 113 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 114 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; 115 esac 116 ;; 117 reload|force-reload) 118 log_daemon_msg "Reloading $DESC" "$NAME" 119 do_reload 120 log_end_msg $? 121 ;; 122 restart) 123 log_daemon_msg "Restarting $DESC" "$NAME" 124 do_stop 125 case "$?" in 126 0|1) 127 do_start 128 case "$?" in 129 0) log_end_msg 0 ;; 130 1) log_end_msg 1 ;; # Old process is still running 131 *) log_end_msg 1 ;; # Failed to start 132 esac 133 ;; 134 *) 135 # Failed to stop 136 log_end_msg 1 137 ;; 138 esac 139 ;; 140 *) 141 echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 142 exit 3 143 ;; 144 esac 145 146 : 92 std_init "$1"
Note: See TracChangeset
for help on using the changeset viewer.