# \[Solved\] Startup script errors?

**URL:** <https://community.unix.com/t/solved-startup-script-errors/295983>\
**Category:** HP-UX\
**Created:** [September 24, 2011, 11:52pm UTC](https://community.unix.com/t/solved-startup-script-errors/295983 "2011-09-24T23:52:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pplayford](https://community.unix.com/letter_avatar/pplayford/32/6_449c533f586939b6e5f246632a46421f.png) [@pplayford](https://community.unix.com/u/pplayford)\
**Post date:** [September 24, 2011, 11:52pm UTC](https://community.unix.com/t/solved-startup-script-errors/295983/1 "2011-09-24T23:52:19Z")

</div>

The below text is displayed on the console -\>

```nohighlight
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.

```

---

<div class="post-metadata">

**Author:** ![Scott](https://community.unix.com/letter_avatar/scott/32/6_449c533f586939b6e5f246632a46421f.png) [@Scott](https://community.unix.com/u/Scott)\
**Post date:** [September 25, 2011, 12:57am UTC](https://community.unix.com/t/solved-startup-script-errors/295983/2 "2011-09-25T00:57:37Z")

</div>

I would guess these scripts are using a variable which isn't defined.

Please post one of the scripts.

---

<div class="post-metadata">

**Author:** ![pplayford](https://community.unix.com/letter_avatar/pplayford/32/6_449c533f586939b6e5f246632a46421f.png) [@pplayford](https://community.unix.com/u/pplayford)\
**Post date:** [September 25, 2011, 1:44am UTC](https://community.unix.com/t/solved-startup-script-errors/295983/3 "2011-09-25T01:44:44Z")

</div>

```nohighlight
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:/#

```

---

<div class="post-metadata">

**Author:** ![Scott](https://community.unix.com/letter_avatar/scott/32/6_449c533f586939b6e5f246632a46421f.png) [@Scott](https://community.unix.com/u/Scott)\
**Post date:** [September 25, 2011, 3:08am UTC](https://community.unix.com/t/solved-startup-script-errors/295983/4 "2011-09-25T03:08:48Z")

</div>

So my attention turns to line 5 of /etc/rc.config. Can you post that file, if possible (or check it at least)?

---

<div class="post-metadata">

**Author:** ![pplayford](https://community.unix.com/letter_avatar/pplayford/32/6_449c533f586939b6e5f246632a46421f.png) [@pplayford](https://community.unix.com/u/pplayford)\
**Post date:** [September 25, 2011, 3:18am UTC](https://community.unix.com/t/solved-startup-script-errors/295983/5 "2011-09-25T03:18:23Z")

</div>

What I found in the /etc/rc.config.d/netdaemons file is the extra set of double quotes.

# INETD\_ARGS - The command line arguments to be used when starting inetd.  
#  
export INETD=1  
INETD\_ARGS=�"-a -l"�

After I removed the extra set of double quotes the issue was resolved.
