dtinfo other files
This commit is contained in:
committed by
Jon Trulson
parent
acdae62484
commit
4ec9658299
@@ -207,10 +207,7 @@ CleanDaemons()
|
||||
then
|
||||
stopsrc -s inetd >>$LOGFILE 2>&1
|
||||
fi
|
||||
elif [ "$PLATFORM" = openbsd ]
|
||||
then
|
||||
true
|
||||
elif [ "$PLATFORM" = freebsd ]
|
||||
elif [ "$PLATFORM" = "openbsd" ]
|
||||
then
|
||||
ps axo pid,comm | grep $i > /tmp/tmppsout
|
||||
if [ -s /tmp/tmppsout ]
|
||||
@@ -218,6 +215,22 @@ CleanDaemons()
|
||||
awk '{print "kill " $1}' /tmp/tmppsout | /bin/csh -f
|
||||
sleep 2
|
||||
fi
|
||||
elif [ "$PLATFORM" = "freebsd" ]
|
||||
then
|
||||
ps axo pid,comm | grep $i > /tmp/tmppsout
|
||||
if [ -s /tmp/tmppsout ]
|
||||
then
|
||||
awk '{print "kill " $1}' /tmp/tmppsout | /bin/csh -f
|
||||
sleep 2
|
||||
fi
|
||||
elif [ "$PLATFORM" = "linux" ]
|
||||
then
|
||||
ps axo pid,comm | grep $i > /tmp/tmppsout
|
||||
if [ -s /tmp/tmppsout ]
|
||||
then
|
||||
awk '{print "kill " $1}' /tmp/tmppsout | /bin/sh -f
|
||||
sleep 2
|
||||
fi
|
||||
else
|
||||
ps -ef | grep $i | grep -v grep >/tmp/tmppsout
|
||||
if [ -s /tmp/tmppsout ]
|
||||
@@ -247,10 +260,13 @@ RestartInetd()
|
||||
/usr/sbin/inetd
|
||||
elif [ "$PLATFORM" = "openbsd" ]
|
||||
then
|
||||
true
|
||||
/etc/rc.d/inetd start >/dev/null
|
||||
elif [ "$PLATFORM" = "freebsd" ]
|
||||
then
|
||||
/etc/rc.d/inetd onestart
|
||||
elif [ "$PLATFORM" = "linux" ]
|
||||
then
|
||||
/etc/init.d/openbsd-inetd start >/dev/null 2>&1
|
||||
else
|
||||
#ifdef hpV4
|
||||
/usr/sbin/inetd
|
||||
@@ -553,7 +569,7 @@ XCOMM
|
||||
elif [ $BUILDSYSTEM = "Linux" ];
|
||||
then
|
||||
PLATFORM="linux"
|
||||
PLATFORM_SCRIPT_DIR=""
|
||||
PLATFORM_SCRIPT_DIR="linux"
|
||||
elif [ $BUILDSYSTEM = "FreeBSD" ];
|
||||
then
|
||||
PLATFORM="freebsd"
|
||||
@@ -561,7 +577,7 @@ XCOMM
|
||||
elif [ $BUILDSYSTEM = "OpenBSD" ];
|
||||
then
|
||||
PLATFORM="openbsd"
|
||||
PLATFORM_SCRIPT_DIR=""
|
||||
PLATFORM_SCRIPT_DIR="openbsd"
|
||||
else # Build system = HP
|
||||
PLATFORM=hp-ux
|
||||
PLATFORM_SCRIPT_DIR=hp
|
||||
|
||||
@@ -517,12 +517,12 @@ doit()
|
||||
# set permissions for non-links
|
||||
if [ "${TYPE%link}" = "$TYPE" ]; then
|
||||
if [ "$USER" = "root" ]; then
|
||||
chmod $MODE $DEST ||
|
||||
echo "ERROR: \"chmod $MODE $DEST\" failed" >&2
|
||||
chgrp $GROUP $DEST ||
|
||||
echo "ERROR: \"chgrp $GROUP $DEST\" failed" >&2
|
||||
chown $OWNER $DEST ||
|
||||
echo "ERROR: \"chown $OWNER $DEST\" failed" >&2
|
||||
chmod $MODE $DEST ||
|
||||
echo "ERROR: \"chmod $MODE $DEST\" failed" >&2
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user