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

Bug #716394 reported by Mark Alan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gross (Ubuntu)
New
Undecided
Unassigned

Bug Description

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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.