You are not logged in.

#1 2008-04-26 11:55:34

snafle
Member
Registered: 2008-04-08
Posts: 41

SWAT and xinetd

I'm trying to get swat working, but whenever I try to run xinitd it errors with

Service defaults
        Instances = 60
        CPS = max conn:25 wait:30
        Bind = All addresses.
        Only from: All sites
        No access: No blocked sites
        Logging to syslog. Facility = authpriv, level = info
        Log_on_success flags = HOST PID
        Log_on_failure flags = HOST

Service configuration: swat
        id = swat
        flags = IPv4
        socket_type = stream
        Protocol (name,number) = (tcp,6)
        port = 901
        wait = no
        user = 0
        Groups = no
        PER_SOURCE = -1
        Bind = All addresses.
        Server = /usr/sbin/swat
        Server argv = swat
        Only from: All sites
        No access: No blocked sites
        Logging to syslog. Facility = authpriv, level = info
        Log_on_success flags = HOST PID
        Log_on_failure flags = HOST USERID

08/4/26@12:49:42: ERROR: 3841 {activate_normal} bind failed (Permission denied (errno = 13)). service = swat
08/4/26@12:49:42: ERROR: 3841 {cnf_start_services} Service swat failed to start and is deactivated.
08/4/26@12:49:42: DEBUG: 3841 {cnf_start_services} mask_max = 0, services_started = 0
08/4/26@12:49:42: CRITICAL: 3841 {init_services} no services. Exiting...

my /etc/xinetd.conf is

# /etc/xinetd.conf
#

defaults
{
        instances               = 60
        log_type                = SYSLOG authpriv
        log_on_success          = HOST PID
        log_on_failure          = HOST
        cps                     = 25 30
}

includedir /etc/xinetd.d

and my /etc/xinit.d/swat is

service swat
{
        port                    = 901
        socket_type             = stream
        wait                    = no
        user                    = root
        server                  = /usr/sbin/swat
        log_on_failure  += USERID
        disable                 = no
}

does anyone know why it won't let me bind to the adresses (and what that means wink)

Last edited by snafle (2008-04-26 12:01:11)

Offline

#2 2008-04-26 23:02:20

damjan
Member
Registered: 2006-05-30
Posts: 454

Re: SWAT and xinetd

Is something listening on port 901 already??

"netstat -tlnp" will tell you!

Offline

Board footer

Powered by FluxBB