Commit ae4860fa authored by Mattia Dongili's avatar Mattia Dongili

* reformatted changelog deleting the never-uploaded 20060622

* fixed lsb init support
* create /var/run/uml-utilites if it doesn't exist
parent 1274dd3d
uml-utilities (20070815-1) unstable; urgency=low
* New upstream version (Closes: #438457)
* Remove obsolete MAKEDEV invocation and udev/makedev dependencies
(Closes: #434161)
-- Mattia Dongili <malattia@debian.org> Sun, 19 Aug 2007 15:39:38 +0900
uml-utilities (20060622-1) unstable; urgency=low
* New upstream version (Closes: #438457) (Closes: #393263)
[Stefano Melchior]
* new upstream release (Closes: #393263)
* added the humfsify man page
* added the uml_mount man page
* updated policy version in debian/control
* added correction in the tunctl man page (Closes: #395020)
* added LSB support with patch from David Härdeman (Closes: #385906)
* added the humfsify man page
* added the uml_mount man page
* updated policy version in debian/control
* added correction in the tunctl man page (Closes: #395020)
* added LSB support with patch from David Härdeman (Closes: #385906)
[Mattia Dongili]:
* set a decent name for the _maintenance_ team.
* add UML_SWITCH_CTL to defaults file for easier customization.
* add uml_mkcow and jail_uml manpages.
* mention COW files advantages and how to see their actual
disk usage in uml_moo and uml_mkcow manpages. (Closes: #173302)
* Remove obsolete MAKEDEV invocation and udev/makedev dependencies
(Closes: #434161)
* Create /var/run/uml-utilities if it doesn't exist at uml_switch startup
(Closes: #434784)
* set a decent name for the _maintenance_ team.
* add UML_SWITCH_CTL to defaults file for easier customization.
* add uml_mkcow and jail_uml manpages.
* mention COW files advantages and how to see their actual
disk usage in uml_moo and uml_mkcow manpages. (Closes: #173302)
-- Stefano Melchior <stefano.melchior@openlabs.it> Thu, 23 Nov 2006 08:52:51 +0200
-- Mattia Dongili <malattia@debian.org> Sun, 19 Aug 2007 15:39:38 +0900
uml-utilities (20060323-3) unstable; urgency=low
......
......@@ -20,13 +20,14 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/uml_switch
NAME=uml_switch
DESC="User-mode networking switch"
PIDFILE=/var/run/uml-utilities/$NAME.pid
UML_DIR=/var/run/uml-utilities
PIDFILE=$UML_DIR/$NAME.pid
test -x $DAEMON || exit 0
UML_SWITCH_OPTIONS=""
UML_SWITCH_USER="uml-net"
UML_SWITCH_CTL="/var/run/uml-utilities/uml_switch.ctl"
UML_SWITCH_CTL="$UML_DIR/uml_switch.ctl"
if [ -e /etc/default/uml-utilities ]; then
. /etc/default/uml-utilities
......@@ -39,17 +40,19 @@ case "$1" in
if [ "x$UML_SWITCH_START" = "xfalse" ] ; then
[ "$VERBOSE" = "yes" ] && log_warning_msg "$DESC disabled"
exit 0
else
echo -n " $NAME"
fi
# create $UML_DIR if it doesn't exist (RAMRUN=yes in /etc/default/rcS)
if [ ! -d "$UML_DIR" ] ; then
mkdir -p $UML_DIR
chown uml-net:uml-net $UML_DIR
fi
log_daemon_msg "Starting $DESC" "$NAME"
if start-stop-daemon --start --quiet --pidfile $PIDFILE \
--make-pidfile --background --chuid $UML_SWITCH_USER \
if ! start-stop-daemon --start --quiet --pidfile $PIDFILE \
--make-pidfile --background --chuid $UML_SWITCH_USER \
--exec $DAEMON -- $OPTIONS; then
log_end_msg 0
else
log_end_msg 1
fi
log_end_msg 1
exit 1
fi
WAIT=5
while ! test -e $UML_SWITCH_CTL; do
......@@ -63,18 +66,16 @@ case "$1" in
done
chmod 777 $UML_SWITCH_CTL
echo "."
log_end_msg 0
;;
stop)
log_daemon_msg "Stopping $DESC" "$NAME"
if start-stop-daemon --stop --quiet --pidfile $PIDFILE \
--oknodo --exec $DAEMON; then
rm -f $PIDFILE $UML_SWITCH_CTL $UML_SWITCH_DATA
echo "."
rm -f $PIDFILE $UML_SWITCH_CTL $UML_SWITCH_DATA
log_end_msg 0
else
log_end_msg 1
log_end_msg 1
fi
;;
restart|force-reload)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment