Public bug reported:

Binary package hint: gross

The file /etc/default/gross includes the variable:
  # Additional options that are passed to the Daemon.
  DAEMON_OPTS=""

That variable is never used by /etc/init.d/gross because, although that file 
uses the line:
  # Read configuration variable file if it is present
  [ -r /etc/default/$NAME ] && . /etc/default/$NAME

to include the variables set in /etc/default/gross, those variable never
get used.

The following patch would fix it:

--- /etc/init.d/gross   2011-02-10 12:16:45.033688998 +0000
+++ /etc/init.d/gross   2011-02-10 12:20:21.445688990 +0000
@@ -20,6 +20,7 @@
 DAEMON=/usr/sbin/grossd           # Introduce the server's location here
 PIDFILE=/var/run/gross/$NAME.pid
 DAEMON_ARGS="-p $PIDFILE"         # Arguments to run the daemon with
+DAEMON_OPTS=""
 SCRIPTNAME=/etc/init.d/$NAME
 USER="gross"
 GROUP="gross"
@@ -57,7 +58,7 @@
         || return 1
     start-stop-daemon --start -c $USER:$GROUP --quiet \
                       --pidfile $PIDFILE --exec $DAEMON -- \
-        $DAEMON_ARGS \
+        $DAEMON_ARGS $DAEMON_OPTS \
         || return 2
     # Add code here, if necessary, that waits for the process to be ready
     # to handle requests from services started subsequently which depend

** Affects: gross (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/716394

Title:
  Variable DAEMON_OPTS in file /etc/default/gross is never used in
  /etc/init.d/gross

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to