]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
* Apply patch from Thomas Sesselmann to support setting options to pass
authorRuss Allbery <rra@debian.org>
Tue, 27 Mar 2007 01:25:49 +0000 (01:25 +0000)
committerRuss Allbery <rra@debian.org>
Tue, 27 Mar 2007 01:25:49 +0000 (01:25 +0000)
  to bosserver in /etc/default/openafs-fileserver.  (Closes: #409357)

debian/changelog
debian/openafs-fileserver.init

index 6087a77445a76c6ebb3415905e8914ba5b210e66..07918a4c5322b40fa729a6341087d3b47395bf72 100644 (file)
@@ -4,6 +4,8 @@ openafs (1.4.4-1) experimental; urgency=low
     - Support newer Linux kernels.  (Closes: #409797, #410120)
     - Add aklog fallbacks for null realms to support the referral
       capability in MIT Kerberos 1.6 and later.  (Closes: #410314)
+  * Apply patch from Thomas Sesselmann to support setting options to pass
+    to bosserver in /etc/default/openafs-fileserver.  (Closes: #409357)
 
  --
 
index 97b3b9a3739c827e8d3988bb877da7f488ec0af6..71ae2df47ee404e8aef9e2fdb2e6f67571dc1bfa 100755 (executable)
 
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 DAEMON=/usr/sbin/bosserver
+DAEMON_ARGS=""
 NAME=bosserver
 DESC="AFS Server"
 
-
+# Make sure we don't leave file descriptors open.
 exec 3>/dev/null
 exec </dev/null
 
-test -f $DAEMON || exit 0
-
+# Exit if the package is not installed.
+[ -x "$DAEMON" ] || exit 0
 
+# Read configuration if it is present.
+[ -r /etc/default/openafs-fileserver ] && . /etc/default/openafs-fileserver
 
 case "$1" in
   start)
        echo -n "Starting $DESC: "
        start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
-               --exec $DAEMON
+               --exec $DAEMON -- $DAEMON_ARGS
        echo "$NAME."
        ;;
   stop)
        echo -n "Stopping $DESC: "
-    bos shutdown localhost -wait -localauth
+       bos shutdown localhost -wait -localauth
        start-stop-daemon --stop --quiet  \
                --user root --name bosserver
        echo "$NAME."
@@ -72,7 +75,7 @@ case "$1" in
             bos restart localhost -localauth -bos
         else
             start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
-                --exec $DAEMON
+                --exec $DAEMON -- $DAEMON_ARGS
         fi
        sleep 1
        echo "$NAME."