File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / sudo / init.d / hpux.sh.in
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Sun Jun 15 16:12:54 2014 UTC (10 years, 4 months ago) by misho
Branches: sudo, MAIN
CVS tags: v1_8_10p3_0, v1_8_10p3, HEAD
sudo v 1.8.10p3

#!/sbin/sh
#
# Simple HP-UX init.d script to remove the sudo timestamp directory on boot.
# This is needed because HP-UX does not clear /var/run on its own.
# Install as /sbin/init.d/sudo with a link /sbin/rc2.d/S900sudo
#

PATH=/usr/sbin:/usr/bin:/sbin
export PATH

TSDIR="@rundir@/ts"
rval=0

case "$1" in
start_msg)
    echo "Removing the $TSDIR directory"
    ;;
start)
    rm -rf "$TSDIR"
    ;;
*)
    echo "usage: $0 {start|start_msg}"
    rval=1
    ;;
esac

exit $rval

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>