frozen
03-02-2002, 02:16 PM
Hello,
Can anyone give me a walk through on how to replace inetd with xinedt on freebsd 4.5 stable, I allready have xinetd installed but inetd is still running xinetd won't start. Thanks In advance.
Regards,
Jesse
bhalsted
03-02-2002, 02:45 PM
In the /etc/rc.conf file you can set these parameters:
# -- inetd Config
inetd_enable="YES" # Run the network daemon dispatcher (or NO).
inetd_program="/usr/sbin/inetd" # path to inetd, if you want a different one.
inetd_flags="-wW"
# -- end inetd config
Those are for FreeBSD 4.4 anyhow, 'should' work on 4.5 ;)
I imagine you can just change the inetd_program to the new program and change the inetd_flags to the compatible params for xinetd.
Cheers! :beer:
frozen
03-02-2002, 03:08 PM
The problem is when i try starting xinetd it does not start and i get these erros in /var/logs/messages
Mar 2 12:55:07 WWW1 xinetd[90835]: Protocol tcp6 not in /etc/protocols [line=53]
Mar 2 12:55:07 WWW1 xinetd[90835]: id not unique: ftp [line=58]
Mar 2 12:55:07 WWW1 xinetd[90835]: Unknown user: qmaild [line=88]
Mar 2 12:55:07 WWW1 xinetd[90835]: Server /var/qmail/bin/tcp-env is not executable [line=89]
Mar 2 12:55:07 WWW1 xinetd[90835]: No such internal service: auth
Mar 2 12:55:07 WWW1 xinetd[90835]: Service smtp missing attribute user
Mar 2 12:55:07 WWW1 xinetd[90835]: Service smtp missing attribute server
Mar 2 12:55:07 WWW1 xinetd[90835]: bind failed (Address already in use (errno = 48)). service = ftp
Mar 2 12:55:07 WWW1 xinetd[90835]: bind failed (Address already in use (errno = 48)). service = telnet
Mar 2 12:55:07 WWW1 xinetd[90835]: {init_services} no services. Exiting...
Mar 2 13:15:28 WWW1 /kernel: vr0: promiscuous mode enabled
Mar 2 13:15:56 WWW1 /kernel: vr0: promiscuous mode disabled
Mar 2 13:45:20 WWW1 xinetd[91056]: Protocol tcp6 not in /etc/protocols [line=53]
Mar 2 13:45:20 WWW1 xinetd[91056]: id not unique: ftp [line=58]
Mar 2 13:45:20 WWW1 xinetd[91056]: Unknown user: qmaild [line=88]
Mar 2 13:45:20 WWW1 xinetd[91056]: Server /var/qmail/bin/tcp-env is not executable [line=89]
Mar 2 13:45:20 WWW1 xinetd[91056]: No such internal service: auth
Mar 2 13:45:20 WWW1 xinetd[91056]: Service smtp missing attribute user
Mar 2 13:45:20 WWW1 xinetd[91056]: Service smtp missing attribute server
Mar 2 13:45:20 WWW1 xinetd[91056]: bind failed (Address already in use (errno = 48)). service = ftp
Mar 2 13:45:20 WWW1 xinetd[91056]: bind failed (Address already in use (errno = 48)). service = telnet
Mar 2 13:45:20 WWW1 xinetd[91056]: {init_services} no services. Exiting...
bhalsted
03-02-2002, 03:35 PM
You need to shutdown the existing inetd.
Do a "ps aux | grep inet" this should give you the actual name of the process (like "inetd").
From there you do this: killall inetd
If that doesn't work: killall -9 inetd (will just about always work)
Then try starting your own xinetd.
Cheers! :beer:
frozen
03-02-2002, 03:49 PM
haha I feel dumb now I completely forgot about shutting it down after I changed settings. Thanks much man appreciate it
bhalsted
03-02-2002, 03:59 PM
Not a problem, Glad I could help!