ports/66219: apache+mod_ssl rc script does not work

Vivek Khera viek at khera.org
Mon May 3 19:00:49 UTC 2004


>Number:         66219
>Category:       ports
>Synopsis:       apache+mod_ssl rc script does not work
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 03 12:00:39 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Vivek Khera
>Release:        FreeBSD 5.2.1-RELEASE-p5 i386
>Organization:
>Environment:
System: FreeBSD crash.int.kcilink.com 5.2.1-RELEASE-p5 FreeBSD 5.2.1-RELEASE-p5 #7: Wed Apr 28 12:11:01 EDT 2004 khera at crash.int.kcilink.com:/var/usr.obj/usr/src/sys/CRASH i386


	
>Description:
	

Just updated ports tree and updated apache+mod_ssl to 
apache+mod_ssl-1.3.29+2.8.16_2

The rc script now errors out with  "run_rc_command: not found".

>How-To-Repeat:
	

[root at crash]# /usr/local/etc/rc.d/apache.sh start
run_rc_commmand: not found
[root at crash]# /usr/local/etc/rc.d/rsyncd.sh start
[root at crash]# 

you see that rsyncd.sh can run ok, even though both services are not
enabled in rc.conf.


detailed run with sh -x:

[root at crash]# sh -x /usr/local/etc/rc.d/apache.sh start
+ apache_enable=NO
+ apache_flags=-DSSL
+ apache_pidfile=/var/run/httpd.pid
+ . /etc/rc.subr
+ SYSCTL=/sbin/sysctl
+ SYSCTL_N=/sbin/sysctl -n
+ CMD_OSTYPE=/sbin/sysctl -n kern.ostype
+ /sbin/sysctl -n kern.ostype
+ OSTYPE=FreeBSD
+ SYSCTL_W=/sbin/sysctl
+ name=apache
+ set_rcvar
+ [ -z  ]
+ base_var=apache
+ echo apache_enable
+ rcvar=apache_enable
+ command=/usr/local/sbin/httpd
+ load_rc_config apache
+ _command=apache
+ [ -z apache ]
+ [ -z  ]
+ [ -r /etc/defaults/rc.conf ]
+ debug Sourcing /etc/defaults/rc.conf
+ . /etc/defaults/rc.conf
+ rc_debug=NO
+ rc_info=NO
+ rcshutdown_timeout=30
+ swapfile=NO
+ apm_enable=NO
+ apmd_enable=NO
+ apmd_flags=
+ devd_enable=NO
+ kldxref_enable=NO
+ kldxref_clobber=NO
+ kldxref_module_path=
+ pccard_enable=NO
+ pccard_mem=DEFAULT
+ pccard_beep=2
+ pccard_ifconfig=NO
+ pccardd_flags=-z
+ pccard_conf=/etc/defaults/pccard.conf
+ pccard_ether_delay=5
+ removable_interfaces=
+ local_startup=/usr/local/etc/rc.d /usr/X11R6/etc/rc.d
+ script_name_sep= 
+ rc_conf_files=/etc/rc.conf /etc/rc.conf.local
+ gbde_autoattach_all=NO
+ gbde_devices=NO
+ fsck_y_enable=NO
+ background_fsck=YES
+ background_fsck_delay=60
+ netfs_types=nfs:NFS smbfs:SMB portalfs:PORTAL nwfs:NWFS
+ extra_netfs_types=NO
+ hostname=
+ nisdomainname=NO
+ dhclient_program=/sbin/dhclient
+ dhclient_flags=
+ background_dhclient=NO
+ firewall_enable=NO
+ firewall_script=/etc/rc.firewall
+ firewall_type=UNKNOWN
+ firewall_quiet=NO
+ firewall_logging=NO
+ firewall_flags=
+ ip_portrange_first=NO
+ ip_portrange_last=NO
+ ike_enable=NO
+ ike_program=/usr/local/sbin/isakmpd
+ ike_flags=
+ ipsec_enable=NO
+ ipsec_file=/etc/ipsec.conf
+ natd_program=/sbin/natd
+ natd_enable=NO
+ natd_interface=
+ natd_flags=
+ ipfilter_enable=NO
+ ipfilter_program=/sbin/ipf
+ ipfilter_rules=/etc/ipf.rules
+ ipfilter_flags=
+ ipnat_enable=NO
+ ipnat_program=/sbin/ipnat
+ ipnat_rules=/etc/ipnat.rules
+ ipnat_flags=
+ ipmon_enable=NO
+ ipmon_program=/sbin/ipmon
+ ipmon_flags=-Ds
+ ipfs_enable=NO
+ ipfs_program=/sbin/ipfs
+ ipfs_flags=
+ tcp_extensions=YES
+ log_in_vain=0
+ tcp_keepalive=YES
+ tcp_drop_synfin=NO
+ icmp_drop_redirect=NO
+ icmp_log_redirect=NO
+ network_interfaces=auto
+ cloned_interfaces=
+ ifconfig_lo0=inet 127.0.0.1
+ sppp_interfaces=
+ gif_interfaces=NO
+ ppp_enable=NO
+ ppp_mode=auto
+ ppp_nat=YES
+ ppp_profile=papchap
+ ppp_user=root
+ syslogd_enable=YES
+ syslogd_program=/usr/sbin/syslogd
+ syslogd_flags=-s
+ inetd_enable=NO
+ inetd_program=/usr/sbin/inetd
+ inetd_flags=-wW -C 60
+ named_rcng=NO
+ named_enable=NO
+ named_program=/usr/sbin/named
+ named_flags=-u bind -g bind
+ named_pidfile=/var/run/named/pid
+ named_chrootdir=
+ named_chroot_autoupdate=YES
+ named_symlink_enable=YES
+ kerberos5_server_enable=NO
+ kerberos5_server=/usr/libexec/kdc
+ kadmind5_server_enable=NO
+ kadmind5_server=/usr/libexec/kadmind
+ kpasswdd_server_enable=NO
+ kpasswdd_server=/usr/libexec/kpasswdd
+ rwhod_enable=NO
+ rwhod_flags=
+ rarpd_enable=NO
+ rarpd_flags=
+ bootparamd_enable=NO
+ bootparamd_flags=
+ pppoed_enable=NO
+ pppoed_provider=*
+ pppoed_flags=-P /var/run/pppoed.pid
+ pppoed_interface=fxp0
+ sshd_enable=NO
+ sshd_program=/usr/sbin/sshd
+ sshd_flags=
+ amd_enable=NO
+ amd_flags=-a /.amd_mnt -l syslog /host /etc/amd.map /net /etc/amd.map
+ amd_map_program=NO
+ nfs_client_enable=NO
+ nfs_access_cache=2
+ nfs_server_enable=NO
+ nfs_server_flags=-u -t -n 4
+ mountd_enable=NO
+ mountd_flags=-r
+ weak_mountd_authentication=NO
+ nfs_reserved_port_only=NO
+ nfs_bufpackets=
+ rpc_lockd_enable=NO
+ rpc_statd_enable=NO
+ rpcbind_enable=NO
+ rpcbind_program=/usr/sbin/rpcbind
+ rpcbind_flags=
+ rpc_ypupdated_enable=NO
+ keyserv_enable=NO
+ keyserv_flags=
+ timed_enable=NO
+ timed_flags=
+ ntpdate_enable=NO
+ ntpdate_program=/usr/sbin/ntpdate
+ ntpdate_flags=-b
+ ntpd_enable=NO
+ ntpd_program=/usr/sbin/ntpd
+ ntpd_flags=-p /var/run/ntpd.pid -f /var/db/ntpd.drift
+ nis_client_enable=NO
+ nis_client_flags=
+ nis_ypset_enable=NO
+ nis_ypset_flags=
+ nis_server_enable=NO
+ nis_server_flags=
+ nis_ypxfrd_enable=NO
+ nis_ypxfrd_flags=
+ nis_yppasswdd_enable=NO
+ nis_yppasswdd_flags=
+ defaultrouter=NO
+ static_routes=
+ natm_static_routes=
+ gateway_enable=NO
+ router_enable=NO
+ router=/sbin/routed
+ router_flags=-q
+ mrouted_enable=NO
+ mrouted_flags=
+ ipxgateway_enable=NO
+ ipxrouted_enable=NO
+ ipxrouted_flags=
+ arpproxy_all=NO
+ forward_sourceroute=NO
+ accept_sourceroute=NO
+ atm_enable=NO
+ atm_pvcs=
+ atm_arps=
+ isdn_enable=NO
+ isdn_fsdev=NO
+ isdn_flags=-dn -d0x1f9
+ isdn_ttype=cons25
+ isdn_screenflags=NO
+ isdn_trace=NO
+ isdn_traceflags=-f /var/tmp/isdntrace0
+ icmp_bmcastecho=NO
+ ipv6_enable=NO
+ ipv6_network_interfaces=auto
+ ipv6_defaultrouter=NO
+ ipv6_static_routes=
+ ipv6_gateway_enable=NO
+ ipv6_router_enable=NO
+ ipv6_router=/usr/sbin/route6d
+ ipv6_router_flags=
+ ipv6_default_interface=NO
+ rtsol_flags=
+ rtadvd_enable=NO
+ rtadvd_interfaces=
+ mroute6d_enable=NO
+ mroute6d_program=/usr/local/sbin/pim6dd
+ mroute6d_flags=
+ stf_interface_ipv4addr=
+ stf_interface_ipv4plen=0
+ stf_interface_ipv6_ifid=0:0:0:1
+ stf_interface_ipv6_slaid=0000
+ ipv6_faith_prefix=NO
+ ipv6_ipv4mapping=NO
+ ipv6_firewall_enable=NO
+ ipv6_firewall_script=/etc/rc.firewall6
+ ipv6_firewall_type=UNKNOWN
+ ipv6_firewall_quiet=NO
+ ipv6_firewall_logging=NO
+ ipv6_firewall_flags=
+ ipv6_ipfilter_rules=/etc/ipf6.rules
+ keymap=NO
+ keyrate=NO
+ keybell=NO
+ keychange=NO
+ cursor=NO
+ scrnmap=NO
+ font8x16=NO
+ font8x14=NO
+ font8x8=NO
+ blanktime=300
+ saver=NO
+ moused_enable=NO
+ moused_type=auto
+ moused_port=/dev/psm0
+ moused_flags=
+ mousechar_start=NO
+ allscreens_flags=
+ allscreens_kbdflags=
+ pcvt_verbose=NO
+ pcvt_keymap=NO
+ pcvt_keydel=NO
+ pcvt_keyrate=NO
+ pcvt_keyrepeat=NO
+ pcvt_force24=NO
+ pcvt_hpext=NO
+ pcvt_lines=NO
+ pcvt_blanktime=NO
+ pcvt_cursorh=NO
+ pcvt_cursorl=NO
+ pcvt_monohigh=NO
+ mta_start_script=/etc/rc.sendmail
+ sendmail_enable=NO
+ sendmail_flags=-L sm-mta -bd -q30m
+ sendmail_submit_enable=YES
+ sendmail_submit_flags=-L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost
+ sendmail_outbound_enable=YES
+ sendmail_outbound_flags=-L sm-queue -q30m
+ sendmail_msp_queue_enable=YES
+ sendmail_msp_queue_flags=-L sm-msp-queue -Ac -q30m
+ cron_enable=YES
+ cron_program=/usr/sbin/cron
+ cron_flags=
+ lpd_enable=NO
+ lpd_program=/usr/sbin/lpd
+ lpd_flags=
+ usbd_enable=NO
+ usbd_flags=
+ dumpdev=NO
+ dumpdir=/var/crash
+ savecore_flags=
+ enable_quotas=NO
+ check_quotas=YES
+ accounting_enable=NO
+ ibcs2_enable=NO
+ ibcs2_loaders=coff
+ sysvipc_enable=NO
+ linux_enable=NO
+ svr4_enable=NO
+ osf1_enable=NO
+ clear_tmp_enable=NO
+ ldconfig_insecure=NO
+ ldconfig_paths=/usr/lib/compat /usr/X11R6/lib /usr/local/lib
+ ldconfig_paths_aout=/usr/lib/compat/aout /usr/X11R6/lib/aout /usr/local/lib/aout
+ kern_securelevel_enable=NO
+ kern_securelevel=-1
+ lomac_enable=NO
+ update_motd=YES
+ start_vinum=NO
+ unaligned_print=YES
+ entropy_file=/entropy
+ entropy_dir=/var/db/entropy
+ entropy_save_sz=2048
+ entropy_save_num=8
+ harvest_interrupt=YES
+ harvest_ethernet=YES
+ harvest_p_to_p=YES
+ dmesg_enable=YES
+ watchdogd_enable=NO
+ devfs_rulesets=/etc/defaults/devfs.rules /etc/devfs.rules
+ devfs_system_ruleset=
+ jail_enable=NO
+ jail_list=
+ jail_set_hostname_allow=YES
+ jail_socket_unixiproute_only=YES
+ jail_sysvipc_allow=NO
+ jail_stop_jailer=NO
+ [ -z  ]
+ source_rc_confs_defined=yes
+ source_rc_confs
+ local i sourced_files
+ sourced_files=:/etc/rc.conf:
+ [ -r /etc/rc.conf ]
+ . /etc/rc.conf
+ defaultrouter=192.168.7.1
+ hostname=crash.int.kcilink.com
+ ifconfig_fxp0=inet 192.168.7.8  netmask 255.255.255.0
+ nfs_client_enable=YES
+ nfs_server_enable=YES
+ rpc_lockd_enable=YES
+ rpc_statd_enable=YES
+ sshd_enable=YES
+ amd_enable=YES
+ amd_flags=-n -l syslog -r -a /amd /n /etc/amd.map
+ ntpdate_enable=YES
+ ntpdate_flags=-bs yertle
+ xntpd_enable=YES
+ apm_enable=YES
+ sendmail_enable=NONE
+ dumpdev=/dev/ad0s1b
+ sourced_files=:/etc/rc.conf::/etc/rc.conf.local:
+ [ -r /etc/rc.conf.local ]
+ _rc_conf_loaded=YES
+ [ -f /etc/rc.conf.d/apache ]
+ [ -n  ]
+ [ -n  ]
+ [ -n  ]
+ [ -n  ]
+ [ -n YES ]
+ ntpd_enable=YES
+ [ -n  ]
+ [ -n  ]
+ [ -n  ]
+ [ -n  ]
+ pidfile=/var/run/httpd.pid
+ run_rc_commmand start
run_rc_commmand: not found

>Fix:

	


don't know.  it is not obvious why it fails.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list