View Single Post
Old 20th July 2009
badguy badguy is offline
Fdisk Soldier
 
Join Date: Jul 2009
Location: MD, USA
Posts: 59
Default

here is what my rc.conf.local looks like

#!/bin/sh -
#
# $OpenBSD: rc.conf,v 1.131 2008/11/27 00:52:06 uwe Exp $

# set these to "NO" to turn them off. otherwise, they're used as flags
ripd_flags=NO # for normal use: ""
mrouted_flags=NO # for normal use: "", if activated
# be sure to enable multicast_router below.
dvmrpd_flags=NO # for normal use: ""
ospfd_flags=NO # for normal use: ""
ospf6d_flags=NO # for normal use: ""
bgpd_flags=NO # for normal use: ""
rarpd_flags=NO # for normal use: "-a"
bootparamd_flags=NO # for normal use: ""
rbootd_flags=NO # for normal use: ""
sshd_flags="" # for normal use: ""
named_flags=NO # for normal use: ""
rdate_flags=NO # for normal use: [RFC868-host] or [-n RFC2030-host]
timed_flags=NO # for normal use: ""
ldattach_flags=NO # for normal use: "[options] linedisc cua-device"
ntpd_flags=NO # for normal use: ""
isakmpd_flags=NO # for normal use: ""
sasyncd_flags=NO # for normal use: ""
mopd_flags=NO # for normal use: "-a"
apmd_flags=NO # for normal use: ""
dhcpd_flags=NO # for normal use: ""
dhcrelay_flags=NO # for normal use: "-i interface [server]"
rtadvd_flags=NO # for normal use: list of interfaces
# be sure to set net.inet6.ip6.forwarding=1
route6d_flags=NO # for normal use: ""
# be sure to set net.inet6.ip6.forwarding=1
rtsold_flags=NO # for normal use: interface
# be sure to set net.inet6.ip6.forwarding=0
# be sure to set net.inet6.ip6.accept_rtadv=1
lpd_flags=NO # for normal use: "" (or "-l" for debugging)
sensorsd_flags=NO # for normal use: ""
hotplugd_flags=NO # for normal use: ""
watchdogd_flags=NO # for normal use: ""
ftpproxy_flags=NO # for normal use: ""
hostapd_flags=NO # for normal use: ""
ifstated_flags=NO # for normal use: ""
relayd_flags=NO # for normal use: ""
snmpd_flags=NO # for normal use: ""
symon_enable=YES
symux_enable=YES


# use -u to disable chroot, see httpd(8)
httpd_flags="" # for normal use: "" (or "-DSSL" after reading ssl(8))

# For normal use: "-L sm-mta -bd -q30m", and note there is a cron job
sendmail_flags="-L sm-mta -C/etc/mail/localhost.cf -bd -q30m"
spamd_flags=NO # for normal use: "" and see spamd(8)
spamd_black=NO # set to YES to run spamd without greylisting
spamlogd_flags="" # use eg. "-i interface" and see spamlogd(8)

# Set to NO if ftpd is running out of inetd
ftpd_flags=NO # for non-inetd use: "-D"

# Set to NO if identd is running out of inetd
identd_flags=NO # for non-inetd use: "-b -elo"

# On some architectures, you must also disable console getty in /etc/ttys
xdm_flags=NO # for normal use: ""

# For enabling console mouse support (i386 alpha amd64)
wsmoused_flags=NO # for ps/2 or usb mice: "", serial: "-p /dev/cua00"



unfortunately when i reboot and do a ps -ax i do not see symon started up so i have to start it manually.


I also realized that when i add a -d option for symon it starts and does not generate any error while adding a -d option to symux shows the following


# /usr/local/libexec/symux -d
symux version 2.78
program id=10679
debug: size of churnbuffer = 568
debug: shm from 0x82b41000 to 0x82c42390
debug: symux packet size=404
warning: mux address 127.0.0.1 2100 already in use
fatal: no sockets could be opened for incoming symon traffic

Any idea why this is generated? my symux.conf is as follows:

mux 127.0.0.1 2100

source 127.0.0.1 {
accept { cpu(0), mem,
if(vic0),
# pf,
# mbuf,
# sensor(0),
# proc(httpd),
# if(xl0), if(de0), if(wi0),
# io(wd1), io(wd2), io(wd3), io(cd0)
io(wd0)
}
datadir "/var/www/htdocs/syweb/localhost"
}


Process running are as follows
# ps ax
PID TT STAT TIME COMMAND
1 ?? Ss 0:00.02 /sbin/init
16230 ?? Is 0:00.00 dhclient: vic0 (dhclient)
11423 ?? Is 0:00.01 syslogd: [priv] (syslogd)
4439 ?? S 0:00.03 syslogd -a /var/empty/dev/log
24058 ?? Ss 0:00.10 sendmail: accepting connections (sendmail)
20542 ?? Ss 0:00.14 httpd: parent [chroot /var/www] (httpd)
16518 ?? Is 0:00.00 inetd
7866 ?? I 0:00.01 httpd: child (httpd)
2039 ?? I 0:00.06 httpd: child (httpd)
9293 ?? I 0:00.06 httpd: child (httpd)
16691 ?? I 0:00.01 httpd: child (httpd)
12421 ?? I 0:00.01 httpd: child (httpd)
25641 ?? Is 0:00.01 /usr/sbin/sshd
9998 ?? Is 0:00.01 cron
13845 ?? Ss 0:00.15 sshd: root@ttyp0 (sshd)
28826 ?? I 0:00.00 httpd: child (httpd)
15627 ?? I 0:00.01 httpd: child (httpd)
24964 ?? I 0:00.00 httpd: child (httpd)
25652 ?? Ss 0:00.00 /usr/local/libexec/symon
22964 ?? Ss 0:00.03 /usr/local/libexec/symux
5532 p0 Ss 0:00.03 -ksh (ksh)
30606 p0 R+ 0:00.00 ps -ax
3505 C0- I 0:00.00 dhclient: vic0 [priv] (dhclient)
5954 C0 Is+ 0:00.01 /usr/libexec/getty std.9600 ttyC0
1638 C1 Is+ 0:00.01 /usr/libexec/getty std.9600 ttyC1
6382 C2 Is+ 0:00.00 /usr/libexec/getty std.9600 ttyC2
4894 C3 Is+ 0:00.00 /usr/libexec/getty std.9600 ttyC3
24981 C5 Is+ 0:00.00 /usr/libexec/getty std.9600 ttyC5
Reply With Quote