#---------------------------------------------------------------------------- # /etc/rc.d/rc400.telmond - configuration/startup of telmond # was file /etc/rc.d/telmond # # Creation: 10.10.2000 fm # Last Update: $Id$ #---------------------------------------------------------------------------- case $OPT_TELMOND in yes) begin_script TELMOND "starting telmond ..." if [ ! -f /etc/telmond.conf ] # already existing? then # yes, don't overwrite case $TELMOND_LOG in yes) [ 0$TELMOND_MSN_N -eq 0 ] || for idx in `seq 1 $TELMOND_MSN_N` do eval telmond_msn='$TELMOND_MSN_'$idx echo "log $telmond_msn" done >/etc/telmond.conf ;; esac [ 0$TELMOND_CMD_N -eq 0 ] || for idx in `seq 1 $TELMOND_CMD_N` do eval telmond_cmd='$TELMOND_CMD_'$idx echo "exec $telmond_cmd" done >>/etc/telmond.conf fi echo $TELMOND_PORT >/var/run/telmond.port ln -s /usr/local/bin/imond-stat /usr/local/bin/telmond-send if [ -f /etc/rc.d/rc325.syslogd ] then syslog_opt='-log-to-syslog' else syslog_opt='' fi if [ -f /etc/rc.d/rc330.klogd ] then echo "*.info |/var/run/kernel-info" >> /etc/syslog.conf fifo_opt='-syslog-fifo /var/run/kernel-info' /bin/mknod /var/run/kernel-info p if [ -f /var/run/syslogd.pid ] then kill -1 `cat /var/run/syslogd.pid` fi else fifo_opt='' fi if [ ! -d $TELMOND_LOGDIR ] then mkdir -p $TELMOND_LOGDIR fi /usr/local/bin/telmond -port $TELMOND_PORT $syslog_opt $fifo_opt $TELMOND_LOGDIR end_script ;; esac