/etc/init.d/icecc reports wrong starting actions
Bug #125838 reported by
Stephan Elsner
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
icecc (Ubuntu) |
Fix Released
|
Low
|
Rolf Leggewie |
Bug Description
Binary package hint: icecc
when starting icecc with /etc/init.d/icecc start the script says always that both daemon and scheduler started, even if the scheduler is switched off (which is by default). Thats confusing, because the scheduler is not being started
To post a comment you must log in.
hi,
i can't reproduce the bug using 0.8.0-1 package.
/etc/default/icecc contains:
1 # Defaults for icecc initscript SCHEDULER= "false"
2 # sourced by /etc/init.d/icecc
3 START_ICECC="true"
4 START_ICECC_
we read config file in /etc/init.d/icecc: /etc/icecc/ icecc.conf /etc/default/ icecc
[...]
15 CONFIGFILE=
16 DEFAULTFILE=
17
18 # Read configuration files
19 [ -r $CONFIGFILE ] && . $CONFIGFILE
20 [ -r $DEFAULTFILE ] && . $DEFAULTFILE
[...]
and on start case: ICECC_SCHEDULER " = "true" ]; then scheduler
[...]
78 start)
79 if [ "$START_ICECC" = "true" ]; then
80 log_daemon_msg "Starting distributed compiler daemon" "iceccd"
81 start_icecc_daemon
82 log_end_msg $?
83 fi
84
85 if [ "$START_
86 log_daemon_msg "Starting distributed compiler scheduler" "icecc-scheduler"
87 start_icecc_
88 log_end_msg $?
89 fi
90 ;;
[...]
we show each message only if its own variable is set to true.
cheers,
Fathi