sbin/rc2.d/S130pfilboot[5]: -l: not found.
/sbin/rc2.d/S131ipfboot[5]: -l: not found.
/sbin/rc2.d/S590Rpcd[30]: -l: not found.
/sbin/rc2.d/S700acct[39]: -l: not found.
/sbin/rc2.d/S900drd[21]: -l: not found.
/sbin/rc3.d/S823hpws22_apache[44]: -l: not found.
/sbin/rc3.d/S823hpws22_tomcat[46]: -l: not found.
/sbin/rc3.d/S823hpws22_webmin[45]: -l: not found.
/sbin/rc3.d/S823hpws22_webproxy[44]: -l: not found.
/sbin/rc3.d/S823hpws_xmltools[42]: -l: not found.
vic-samapp-upr1:/# cat -n /sbin/rc3.d/S823hpws22_apache
1 #!/sbin/sh
2 #
3 # @(#) $Revision: 82.1 $
4 #
5 # NOTE: This script is not configurable! Any changes made to this
6 # script will be overwritten when you upgrade to the next
7 # release of HP-UX.
8 #
9 # WARNING: Changing this script in any way may lead to a system that
10 # is unbootable. Do not modify this script.
11 #
12 # The Apache script is used for starting up the Apache webserver
13 # by default at boot-up time.
14 # Configurable options are:
15 # HPWS22_APACHE_HOME
16 # HPWS22_APACHE_START
17 # These options can be supplied in /etc/rc.config.d/hpws22_apacheconf file.
18 #
19 # Allowed exit values:
20 # 0 = success; causes "OK" to show up in checklist.
21 # 1 = failure; causes "FAIL" to show up in checklist.
22 # 2 = skip; causes "N/A" to show up in the checklist.
23 # Use this value if execution of this script is overridden
24 # by the use of a control variable, or if this script is not
25 # appropriate to execute for some other reason.
26 # 3 = reboot; causes the system to be rebooted after execution.
27 # 4 = background; causes "BG" to show up in the checklist.
28 # Use this value if this script starts a process in background mode.
29 # Input and output:
30 # stdin is redirected from /dev/null
31 #
32 # stdout and stderr are redirected to the /etc/rc.log file
33 # during checklist mode, or to the console in raw mode.
34 export PATH=/usr/sbin:/usr/bin:/sbin
35 # Assume "excluded"
36 rval=2
37 # source the system configuration variables
38 if [ -f /etc/rc.config ] ; then
39 . /etc/rc.config
40 else
41 echo "ERROR: /etc/rc.config defaults file MISSING"
42 fi
43 export HPWS22_APACHE_HOME
44 case $1 in
45 'start_msg')
46 echo "Starting HP-UX Apache-based Web Server"
47 ;;
48 'stop_msg')
49 echo "Stopping HP-UX Apache-based Web Server"
50 ;;
51 'start')
52 # Apache will be started in ssl mode by default.
53 # Execute the command to start Apache
54 if [ $HPWS22_APACHE_START -eq 1 ]; then
55 # Execute the commands to start apache
56 $HPWS22_APACHE_HOME/bin/apachectl start 1>/dev/null 2>&1
57 if [ $? -ne 0 ]; then
58 echo "ERROR: Could not start Apache"
59 else
60 rval=0
61 echo "Apache Started.."
62 fi
63 fi
64 ;;
65
66 'stop')
67 # Execute the commands to stop apache
68 $HPWS22_APACHE_HOME/bin/apachectl stop 1>/dev/null 2>&1
69 rval=0
70 ;;
71 *)
72 echo "usage: $0 {start|startssl|stop|start_msg|stop_msg}"
73 rval=1
74 ;;
75 esac
76 exit $rval
vic-samapp-upr1:/#