[11392] in Athena Bugs
sun4 7.6Q: /etc/init.d/athena
daemon@ATHENA.MIT.EDU (jweiss@MIT.EDU)
Wed Nov 17 13:35:22 1993
From: jweiss@MIT.EDU
To: bugs@MIT.EDU
Cc: jweiss@MIT.EDU
Date: Wed, 17 Nov 93 13:35:10 EST
System name: the-other-woman
Type and version: SPARC/Classic 7.6Q (12 update(s) to same version)
Display type: cgthree
What were you trying to do?
start a mail daemon at boot time.
What's wrong:
/etc/init.d/athena ignores at least several of the variables in
/etc/athena/rc.conf, including "SENDMAIL"
What should have happened:
It should have started a sendmail daemon
Please describe any relevant documentation references:
Here is an example of how to fix this problem. The example
covers the ignored "SENDMAIL" variable case. How to fix
the other cases is left as an exercise to the reader.
(Hint: look at /etc/athena/rc.athena on a DECstation)
The second part of the diff isn't relevant to the bug, but it
seemed like a good idea at the time.
*** /etc/init.d/athena Wed Oct 20 09:27:43 1993
--- /afs/athena.mit.edu/user/j/w/jweiss/work-area//athena Wed Nov 17 13:10:10 1993
***************
*** 174,179 ****
--- 174,183 ----
echo "snmpd..." >/dev/console
/etc/athena/snmpd &
fi
+ if [ "${SENDMAIL}" = "true" -a -f /usr/lib/sendmail ]; then
+ echo "sendmail..." >/dev/console
+ /usr/lib/sendmail -bd -q30m &
+ fi
if [ "${ZCLIENT}" = "true" ]; then
echo "zhm..." >/dev/console
rm -f /etc/athena/zhm.pid
***************
*** 242,252 ****
echo "usage: /etc/rc2.d/S90athena {start|stop}"
;;
esac
-
-
-
-
-
-
-
-
--- 246,248 ----