- Timestamp:
- Nov 22, 2008, 5:36:22 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
r1700 r1741 1 invirt-console-server (0.1.1) unstable; urgency=low 2 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 6 1 7 invirt-console-server (0.1.0) unstable; urgency=low 2 8 -
trunk/packages/invirt-console-server/debian/invirt-console-server.init
r1740 r1741 19 19 NAME=invirt-console-server 20 20 DAEMON=/usr/bin/invirt-consolefs 21 DAEMON_ARGS="/consolefs" 21 MOUNTPOINT="/consolefs" 22 DAEMON_ARGS="-f $MOUNTPOINT" 22 23 PIDFILE=/var/run/$NAME.pid 23 24 SCRIPTNAME=/etc/init.d/$NAME … … 56 57 # 1 if daemon was already running 57 58 # 2 if daemon could not be started 58 modprobe fuse 59 60 # Try to make sure fuse is setup 61 [ -e /dev/fuse ] || modprobe fuse || return 2 62 63 if cat /proc/mounts | grep " $MOUNTPOINT " >/dev/null 2>&1; then 64 return 1 65 fi 66 59 67 gen_config 60 daemon --running -n $NAME && return 161 daemon -r -O daemon.info -E daemon.err -n $NAME - U$DAEMON $DAEMON_ARGS || return 268 69 daemon -r -O daemon.info -E daemon.err -n $NAME -- $DAEMON $DAEMON_ARGS || return 2 62 70 } 63 71 … … 72 80 # 2 if daemon could not be stopped 73 81 # other if a failure occurred 82 83 if ! cat /proc/mounts | grep " $MOUNTPOINT " >/dev/null 2>&1; then 84 return 1 85 fi 86 74 87 daemon --stop -n $NAME 75 88 RETVAL="$?" … … 77 90 # Many daemons don't delete their pidfiles when they exit. 78 91 rm -f $PIDFILE 79 umount "$DAEMON_ARGS"80 return "$RETVAL"81 92 } 82 93
Note: See TracChangeset
for help on using the changeset viewer.