Hi,
Some fun with a wireless NIC and OpenBSD:
I'm trying to create a public Jabber server,
reachable over the wireless NIC only.
The parts that launch ok, and tested to be functional are: dhcpd + named +
mysql. However, launching jabberd from rc.local may require some extra BSD
magic, I can only get it to launch properly using
su
cd /usr/local/sbin
su _jabberd ./jabberd
When I put something along these lines in rc.local, I get some
complaints from jabberd, not being able to connect to the mysql server.
Can this be a problem with startup timing?
My rc.local contents:
# Add your local startup actions here.
if [ -x /usr/local/bin/mysqld_safe ] ; then
su -c mysql root -c '/usr/local/bin/mysqld_safe >/dev/null 2>&1 &'
echo -n ' mysql'
fi
if [ -x /usr/local/sbin/jabberd ] ; then
sleep 2
su _jabberd -c '/usr/local/sbin/jabberd >/dev/null 2>&1 &'
echo -n ' jabberd'
fi
The "sleep 2" bit is just a stupid attempt to "fix",
but what am I overlooking here?
What is the correct startup code or sequence for this?
Cheers, Christiaan
_______________________________________________
Openbsd-newbies mailing list
[email protected]
http://mailman.theapt.org/listinfo/openbsd-newbies