blob: 21820599373d95a6cbc5b4785f309e22995ce3cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/sbin/openrc-run
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
extra_stopped_commands="purge"
purge() {
ebegin "Purging hosts.deny"
start-stop-daemon --start --exec /usr/bin/denyhosts.py --pidfile /var/run/denyhosts.pid -- --purge
eend $?
}
depend() {
use logger sshd
}
start() {
ebegin "Starting DenyHosts daemon"
start-stop-daemon --start --exec /usr/bin/denyhosts.py --pidfile /var/run/denyhosts.pid -- --daemon -c /etc/denyhosts.conf
eend $?
}
stop() {
ebegin "Stopping DenyHosts daemon"
start-stop-daemon --quiet --stop --pidfile /var/run/denyhosts.pid
eend $?
}
|