#
# description: Manages all PLC services on this machine
#
-# $Id: guest.init,v 1.3 2006/03/27 22:03:38 mlhuang Exp $
+# $Id: guest.init,v 1.4 2006/03/28 20:47:57 mlhuang Exp $
#
PATH=/sbin:/bin:/usr/bin:/usr/sbin
{
case "$1" in
start)
- if [ "$PLC_API_ENABLED" -ne 1 ] ; then
+ if [ "$PLC_API_ENABLED" != "1" ] ; then
return
fi
{
case "$1" in
start)
+ if [ "$PLC_MAIL_ENABLED" = "1" ] ; then
+ MAILTO=$PLC_MAIL_SUPPORT_ADDRESS
+ else
+ MAILTO=
+ fi
cat >/etc/cron.d/plc.cron <<EOF
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
-MAILTO=$PLC_MAIL_SUPPORT_ADDRESS
+MAILTO=$MAILTO
HOME=/
# minute hour day-of-month month day-of-week user command