head 1.19; access; symbols; locks; strict; comment @# @; 1.19 date 99.08.05.16.30.14; author alexis; state Exp; branches; next 1.18; 1.18 date 99.05.07.14.48.35; author alexis; state Exp; branches; next 1.17; 1.17 date 99.05.06.08.45.55; author alexis; state Exp; branches; next 1.16; 1.16 date 99.04.28.11.03.37; author alexis; state Exp; branches; next 1.15; 1.15 date 99.01.07.13.26.17; author alexis; state Exp; branches; next 1.14; 1.14 date 98.08.28.17.44.44; author alexis; state Exp; branches; next 1.13; 1.13 date 98.08.28.13.26.21; author alexis; state Exp; branches; next ; desc @SHPP PORT OF local-ppplc.in @ 1.19 log @redirected output on startup @ text @#! /bin/sh # $Header: /diskb/home/alexis/dev/supported/ppplc/doc/examples/RCS/local-ppplc.shpp,v 1.18 1999/05/07 14:48:35 alexis Exp alexis $ #shpp include ../../bin/ppplc_msgids.shpp PPPLCD=MARKER_LCLSBINDIR/ppplcd CONF_FILE=MARKER_PRGCFGDIR/ppplcd.conf SNDMSG=MARKER_LCLBINDIR/sndmsg NSSWITCHER=MARKER_PRGLIBDIR/misc/nsswitcher VERSION="MARKER_PATCHLEVEL" PROGNAME=`basename $0` case "$1" in -V) echo "$PROGNAME version $VERSION" exit 0 ;; esac [ -x $PPPLCD ] || exit 0 [ -x $SNDMSG ] || exit 0 [ -x $NSSWITCHER ] || exit 0 [ -r $CONF_FILE ] || exit 0 case "$1" in start) echo -n "Starting PPP Link Control Daemon:" echo -n " ppplcd" $PPPLCD $CONF_FILE > /dev/null 2>&1 echo -n " nsswitcher" PPPLCD_WANNABE=0 $NSSWITCHER -p 3 echo "." ;; stop) echo -n "Stopping PPP Link Control Daemon:" echo -n " ppplcd" $SNDMSG MARKER_MSGID_SET_QUIT echo -n " nsswitcher" PPPLCD_WANNABE=0 $NSSWITCHER -p 3 echo "." ;; *) echo "Usage: $PROGNAME { start | stop }" exit 1 ;; esac exit 0 @ 1.18 log @ppplcd calls not redirected nsswitcher added to shutdown nsswitcher now uses environment var, not cmdline par @ text @d3 1 a3 1 # $Header: /diskb/home/alexis/dev/supported/ppplc/doc/examples/RCS/local-ppplc.shpp,v 1.17 1999/05/06 08:45:55 alexis Exp alexis $ d32 1 a32 1 $PPPLCD $CONF_FILE @ 1.17 log @corrected boot messages , @ text @d3 1 a3 1 # $Header: /diskb/home/alexis/dev/supported/ppplc/doc/examples/RCS/local-ppplc.shpp,v 1.16 1999/04/28 11:03:37 alexis Exp alexis $ d32 1 a32 1 $PPPLCD $CONF_FILE > /dev/null 2>&1 d35 1 a35 1 $NSSWITCHER -p 3 0 d46 3 @ 1.16 log @changed explicit message id numbers for shpp variables @ text @d3 1 a3 1 # $Header: /diskb/home/alexis/dev/supported/ppplc/doc/examples/RCS/local-ppplc.shpp,v 1.15 1999/01/07 13:26:17 alexis Exp alexis $ d29 1 a29 1 echo -n "Starting PPP Link Control Daemon" a31 1 [ ! -r $CONF_FILE ] && { echo "$CONF_FILE: not found"; exit 1; } d35 1 a35 1 $NSSWITCHER 0 d41 1 a41 1 echo "Stopping PPP Link Control Daemon" @ 1.15 log @symbol name changes @ text @d3 3 a5 1 # $Header: local-ppplc.shpp,v 1.14 1998/08/28 17:44:44 alexis Exp alexis $ d10 1 d24 1 d29 3 a31 1 echo "Starting ppplcd" d34 5 d42 6 a47 2 echo "Stopping ppplcd" $SNDMSG 3 2>/dev/null @ 1.14 log @cosmetic changes to a var name @ text @d3 1 a3 1 # $Id: local-ppplc.shpp,v 1.13 1998/08/28 13:26:21 alexis Exp alexis $ d5 3 a7 3 PPPLCD=LCLSBINDIR_MARKER/ppplcd CONF_FILE=PRGCFGDIR_MARKER/ppplcd.conf SNDMSG=LCLBINDIR_MARKER/sndmsg d9 1 a9 1 VERSION="PATCHLEVEL_MARKER" @ 1.13 log @*** empty log message *** @ text @d3 1 a3 1 # $Id: local-ppplc.in,v 1.12 1998/08/27 15:26:11 alexis Exp $ d6 1 a6 1 CONFIG=PRGCFGDIR_MARKER/ppplc.conf d21 1 a21 1 [ -r $CONFIG ] || exit 0 d26 2 a27 2 [ ! -r $CONFIG ] && { echo "$CONFIG: not found"; exit 1; } $PPPLCD $CONFIG > /dev/null 2>&1 @