summaryrefslogtreecommitdiffstats
path: root/init.d/hpux.sh.in
blob: 5a76bd25bd194ffa5db43c43edeee7c4a2de80e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/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