Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rc-status denyhosts crashed [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
theotherjoe
Guru
Guru


Joined: 22 Nov 2003
Posts: 393

PostPosted: Mon Aug 24, 2009 3:23 pm    Post subject: rc-status denyhosts crashed [solved] Reply with quote

anybody ran into the following:
Code:
localhost ~ # rc-status
Runlevel: default
 atd                                                                                    [  started  ]
 net.eth0                                                                               [  started  ]
 cupsd                                                                                  [  started  ]
 named                                                                                  [  started  ]
 sshd                                                                                   [  started  ]
 denyhosts                                                                              [  crashed  ]
 ntpd                                                                                   [  started  ]
 smartd                                                                                 [  started  ]
 vixie-cron                                                                             [  started  ]
 xdm                                                                                    [  started  ]
 local                                                                                  [  started  ]
Runlevel: hotplugged
 udev-postmount                                                                         [  started  ]
Runlevel: needed
 sysfs                                                                                  [  started  ]
 udev-mount                                                                             [  started  ]
 dbus                                                                                   [  started  ]
Runlevel: manual

but:
Code:
localhost ~ # ps ax | grep denyhosts
 4832 ?        S      0:00 /usr/bin/python /usr/bin/denyhosts --daemon -c /etc/denyhosts.conf

so the daemon is sitting there doing its job. nothing
to complain about. and there are no messages in
any of the logs indicating a problem with denyhosts.

anybody has any idea about this?
had a look at the start script, but there isn't anything
particular about it.

edit: uh, and btw
Quote:
localhost ~ # cat /var/run/denyhosts.pid
4832


edit2: seems its already know
https://bugs.gentoo.org/244700
changed /etc/init.d/denyhosts
Code:
start() {
        ebegin "Starting DenyHosts daemon"
#       start-stop-daemon --name denyhosts --start --exec /usr/bin/denyhosts -- --daemon -c /etc/denyhosts.conf
        start-stop-daemon  --start --exec /usr/bin/denyhosts -- --daemon -c /etc/denyhosts.conf
        eend $?
}

and rc-status returns proper state.

edit 03/26/10:
the upper solution didnt work anymore with openrc-0.6.0.
since installing openrc-0.6.1 I am using the following start function:
Code:
 start() {
        ebegin "Starting DenyHosts daemon"
#       start-stop-daemon --name denyhosts --start --exec /usr/bin/denyhosts -- --daemon -c /etc/denyhosts.conf
        start-stop-daemon --name $(eselect python show) --pidfile /var/run/denyhosts.pid --start \
                 --exec /usr/bin/denyhosts -- --daemon -c /etc/denyhosts.conf
        eend $?
}
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum