~ubuntu-branches/ubuntu/precise/denyhosts/precise-updates

« back to all changes in this revision

Viewing changes to debian/denyhosts.init

  • Committer: Bazaar Package Importer
  • Author(s): Kyle Willmon
  • Date: 2011-04-13 10:23:11 UTC
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20110413102311-t4skxepflm8f7cqj
* New Maintainer (Closes: #614581)
* debian/denyhosts.logrotate: Do not source /etc/denyhosts.conf since it may
  not be a valid shell script (Closes: #608672)
* debian/dh_reenable: Added reasonable error message when script is not run
  as root (Closes: #619390)
* debian/denyhosts.init:
  - Added support for the "status" action (Closes: #547036)
  - Fixed messages in "restart" and "force-reload" actions which were being
    output incorrectly.
* Updated Vcs tags to recommended format
* Added a patch to correct /bin/env to /usr/bin/env
* debian/denyhosts.doc-base: Added to register FAQ with doc-base
* Fixed postinst script to make /var/lib/denyhosts 0750 instead of 0200

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
        d_stop
83
83
        ;;
84
84
  restart|force-reload)
85
 
        log_daemon_msg "Restarting $DESC"
86
85
        d_stop || /bin/true
87
86
        sleep 1
88
87
        d_start
89
 
        log_daemon_msg "Done"
 
88
        ;;
 
89
  status)
 
90
        status_of_proc -p $PIDFILE $DAEMON $NAME
90
91
        ;;
91
92
  *)
92
 
        log_daemon_msg "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
 
93
        log_daemon_msg "Usage: $SCRIPTNAME {start|stop|restart|force-reload|status}" >&2
93
94
        exit 3
94
95
        ;;
95
96
esac