rc.d startup script problem

Paul Schmehl pauls at utdallas.edu
Tue May 13 20:26:01 UTC 2008


--On Tuesday, May 13, 2008 12:56:29 -0700 Xin LI <delphij at delphij.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Paul Schmehl wrote:
>| This script will not start if you change the name or location of the
>| conf file in /etc/rc.conf.  For some reason it's not parsing
>| /etc/rc.conf.  Anyone know why?
>
> One suggestion, could you please try to execute the script with 'sh -x'
> to see what it is actually executing?
>

I should mention, I'm running 7.0 STABLE
# uname -imprsv
FreeBSD 7.0-STABLE FreeBSD 7.0-STABLE #6: Wed Apr 16 17:14:28 CDT 2008 
root at utd65257.utdallas.edu:/usr/obj/usr/src/sys/GENERIC  i386 i386 GENERIC

This is odd.  It finds the conf setting in /etc/rc.conf:

+ dbus_enable=YES
+ hald_enable=YES
+ sancp_agent_enable=YES
+ sancp_agent_conf=/usr/local/etc/sguil-sensor/sancp_agent-ANYSERVER.conf
+ sourced_files=:/etc/rc.conf::/etc/rc.conf.local:
+ [ -r /etc/rc.conf.local ]
+ _rc_conf_loaded=true
+ [ -f /etc/rc.conf.d/sancp_agent ]
+ run_rc_command start
+ _return=0

But then it never uses it.  ???

+ eval rc_flags=$sancp_agent_flags
+ rc_flags=-D -c /usr/local/etc/sguil-sensor/sancp_agent.conf

-- 
Paul Schmehl (pauls at utdallas.edu)
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/



More information about the freebsd-ports mailing list