Changeset 1740 for trunk/packages/invirt-remote-server/debian
- Timestamp:
- Nov 22, 2008, 5:36:20 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-remote-server/debian/invirt-remote-server.init
r1534 r1740 29 29 do_start() 30 30 { 31 32 33 34 35 36 37 38 31 # Return 32 # 0 if daemon has been started 33 # 1 if daemon was already running 34 # 2 if daemon could not be started 35 gen_files 36 modprobe fuse 37 daemon --running -n $NAME && return 1 38 daemon -r -O daemon.info -E daemon.err -n $NAME -U $DAEMON $DAEMON_ARGS || return 2 39 39 } 40 40 41 41 do_stop() 42 42 { 43 44 45 46 47 48 49 50 51 52 53 54 43 # Return 44 # 0 if daemon has been stopped 45 # 1 if daemon was already stopped 46 # 2 if daemon could not be stopped 47 # other if a failure occurred 48 daemon --stop -n $NAME 49 RETVAL="$?" 50 [ "$RETVAL" = 2 ] && return 2 51 # Many daemons don't delete their pidfiles when they exit. 52 rm -f $PIDFILE 53 umount "$DAEMON_ARGS" 54 return "$RETVAL" 55 55 } 56 56
Note: See TracChangeset
for help on using the changeset viewer.