![]() |
|||||
![]() |
|||||
|
Startup vom "CDIX Login Deamon" unter HP-UX 10.XX |
|||||
|
Für einen automatischen Startup des Cdix-Logindeamons ist folgendes zu tun:
Erläuterungen zur Namensvergabe bei den Softlinks: SNNNcdixlogd S für Start NNN für eine Nummer zum Beispiel 990 KNNNcdixlogd K für Kill NNN für eine Nummer zum Beispiel 990 Vorsicht bei der Nummernvergabe, die Netzwerkapplikationen sollten gestartet sein! zu 1. - Inhalt der ersten Datei: /etc/rc.config/cdixlogd# # # Installed at /etc/rc.config.d/cdixlogd # CDIX_LOGIN=1 zu 2. - Inhalt der zweiten Datei: /sbin/init.d/cdixlogd#!/sbin/sh
#
# CDIX-Login startup: Startup and kill script for the CDIX-Login daemon
#
# CD-SOFTWARE GmbH Lampertheim
#
# Initial creation:
# -rob 27.02.97
#
# Allowed exit values:
# 0 = success; -> "OK" in checklist
# 1 = failure; -> "FAIL" in checklist
# 2 = skip; -> "N/A" in checklist
# 3 = reboot; -> reboot the system after execution
#
# input and output:
# stdin is redirected from /dev/null
#
# stdout and stderr are redirected to the /etc/rc.log file
# during the checklist mode, or to the console in raw mode.
#
PATH=/sbin:/usr/sbin:/usr/bin
export PATH
rval=0
WINDOWS_CLIENT=1 # set to 1 if you are running CDIX under Windowsclient
# set to 0 if you are running only the ASCII version
set_return() {
x=$?
if [ $x -ne 0 ]; then
echo "EXIT CODE: $x"
rval=1 # script FAILed
fi
}
case "$1" in
"start_msg") echo "Starting CDIX-Logdaemon" ;;
"start")
if [ "$WINDOWS_CLIENT" -eq 1 ]; then
echo "NOTE: CDIX-Logdaemon wird gestartet"
if [ -f /usr/lib/cdix/bin/cdixlogd ]; then
/usr/lib/cdix/bin/cdixlogd > /usr/tmp/cdixlogd.log 2>&1
rval=0
else
echo "NOTE: CDIX-Logdaemon wurde NICHT gestartet"
echo "ERROR: cdixlogd FILE MISSING"
echo "NOTE: Kein Windows-Client Betrieb !"
rval=1
fi
else
echo "NOTE: CDIX-Logdaemon wurde NICHT gestartet"
echo "NOTE: Kein Windows-Client Betrieb !"
rval=2
fi ;;
"stop_msg") echo "Stopping CDIX-Logdaemon" ;;
"stop")
PIDS=`ps -e | grep cdixlogd | awk '{print $1}'`
if [ -n "$PIDS" ]; then
kill "$PIDS" # Killing me softly ...
sleep 5
kill -9 "$PIDS" # Abschuss
else
break
fi ;;
esac
exit $rval
Diese Anleitung ist nur ein Beispiel! Ohne Gewähr!
<< Zurück zu CDIX Häufig gestellte Fragen << Zurück zum Seitenanfang |
|||||
|
Download als Adobe Acrobat File: |
CDIXdoku.pdf ( 1.1 MB ) |
||||
|
|||||