Changeset 1743 for trunk/packages
- Timestamp:
- Nov 22, 2008, 5:36:27 AM (16 years ago)
- Location:
- trunk/packages/invirt-remote-server/debian
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-remote-server/debian/changelog
r1728 r1743 1 invirt-remote-server (0.1.4) unstable; urgency=low 2 3 * Steal some init script ideas from debathena-pyhesiodfs 4 5 -- Evan Broder <broder@mit.edu> Sat, 22 Nov 2008 05:31:49 -0500 6 1 7 invirt-remote-server (0.1.3) unstable; urgency=low 2 8 -
trunk/packages/invirt-remote-server/debian/invirt-remote-server.init
r1740 r1743 16 16 DESC="the Invirt remctl configuration filesystem" 17 17 DAEMON=/usr/sbin/invirt-remconffs 18 DAEMON_ARGS="/etc/remctl/remconffs" 18 MOUNTPOINT="/etc/remctl/remconffs" 19 DAEMON_ARGS="-f $MOUNTPOINT" 19 20 PIDFILE=/var/run/$NAME.pid 20 21 SCRIPTNAME=/etc/init.d/$NAME … … 27 28 . /lib/init/std-init.sh 28 29 30 # 31 # Function that starts the daemon/service 32 # 29 33 do_start() 30 34 { … … 33 37 # 1 if daemon was already running 34 38 # 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 40 # Try to make sure fuse is setup 41 [ -e /dev/fuse ] || modprobe fuse || return 2 42 43 if cat /proc/mounts | grep " $MOUNTPOINT " >/dev/null 2>&1; then 44 return 1 45 fi 46 47 gen_config 48 49 daemon -r -O daemon.info -E daemon.err -n $NAME -- $DAEMON $DAEMON_ARGS || return 2 39 50 } 40 51 52 # 53 # Function that stops the daemon/service 54 # 41 55 do_stop() 42 56 { … … 46 60 # 2 if daemon could not be stopped 47 61 # other if a failure occurred 62 63 if ! cat /proc/mounts | grep " $MOUNTPOINT " >/dev/null 2>&1; then 64 return 1 65 fi 66 48 67 daemon --stop -n $NAME 49 68 RETVAL="$?" … … 51 70 # Many daemons don't delete their pidfiles when they exit. 52 71 rm -f $PIDFILE 53 umount "$DAEMON_ARGS" 54 return "$RETVAL" 72 } 73 74 do_reload() 75 { 76 gen_config 55 77 } 56 78
Note: See TracChangeset
for help on using the changeset viewer.