Variable DAEMON_OPTS in file /etc/default/gross is never used in /etc/init.d/gross
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=
PIDFILE=
DAEMON_ARGS="-p $PIDFILE" # Arguments to run the daemon with
+DAEMON_OPTS=""
SCRIPTNAME=
USER="gross"
GROUP="gross"
@@ -57,7 +58,7 @@
|| return 1
start-
- $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