Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 151629 Details for
Bug 188536
init script broken
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Fix the start/stop/restart etc init functions to behave properly
denyhosts_fixstart.diff (text/plain), 1.04 KB, created by
Jonathan Underwood
on 2007-04-03 22:34:50 UTC
(
hide
)
Description:
Fix the start/stop/restart etc init functions to behave properly
Filename:
MIME Type:
Creator:
Jonathan Underwood
Created:
2007-04-03 22:34:50 UTC
Size:
1.04 KB
patch
obsolete
>--- /etc/init.d/denyhosts 2006-03-30 17:36:17.000000000 +0100 >+++ /etc/init.d/denyhosts2 2007-04-03 23:16:31.000000000 +0100 >@@ -60,11 +60,30 @@ > fi > } > >-d_condrestart() { $CONTROL condrestart; RETVAL=$?; } >-d_restart() { $CONTROL restart; RETVAL=$?; } >-d_start() { $CONTROL start; RETVAL=$?; } >-d_status() { $CONTROL status; RETVAL=$?; } >-d_stop() { $CONTROL stop; RETVAL=$?; } >+ >+d_start() { >+ echo -n $"Starting denyhosts: " >+ daemon denyhosts.py --daemon --config=/etc/denyhosts.conf >+ RETVAL=$? >+ echo >+ [ $RETVAL -eq 0 ] && touch /var/lock/subsys/denyhosts >+} >+ >+d_stop() { >+ echo -n $"Stopping denyhosts: " >+ killproc denyhosts.py >+ echo >+ [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/denyhosts >+} >+ >+d_restart () { >+ d_stop >+ d_start >+} >+ >+d_condrestart() { >+ [ -f /var/lock/subsys/denyhosts ] && d_restart >+} > > condrestart() { if [ $DAEMON = "yes" ]; then d_condrestart; else c_restart; fi } > restart() { if [ $DAEMON = "yes" ]; then d_restart; else c_restart; fi }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 188536
: 151629 |
151682