summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2011-04-25 04:59:43 +0000
committerJeroen Roovers <jer@gentoo.org>2011-04-25 04:59:43 +0000
commit3f5426f44a4135122b46e657cb4a2f07eb08fe55 (patch)
tree9ec46b9606130d7ecda12f473beaf9772e66c86e /app-admin/sshguard/files
parentFix missing define. (diff)
downloadhistorical-3f5426f44a4135122b46e657cb4a2f07eb08fe55.tar.gz
historical-3f5426f44a4135122b46e657cb4a2f07eb08fe55.tar.bz2
historical-3f5426f44a4135122b46e657cb4a2f07eb08fe55.zip
Use the correct init.d file, and RDEPEND on openrc, by Johan Bergström (bug #351665).
Package-Manager: portage-2.2.0_alpha30/cvs/Linux i686
Diffstat (limited to 'app-admin/sshguard/files')
-rw-r--r--app-admin/sshguard/files/sshguard.initd14
1 files changed, 4 insertions, 10 deletions
diff --git a/app-admin/sshguard/files/sshguard.initd b/app-admin/sshguard/files/sshguard.initd
index 09711cd28c92..89ec7d592c25 100644
--- a/app-admin/sshguard/files/sshguard.initd
+++ b/app-admin/sshguard/files/sshguard.initd
@@ -1,26 +1,20 @@
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/sshguard/files/sshguard.initd,v 1.2 2011/04/23 16:59:59 jer Exp $
-
-: ${SSHGUARD_PIDFILE:='/var/run/sshguard.pid'}
+# $Header: /var/cvsroot/gentoo-x86/app-admin/sshguard/files/sshguard.initd,v 1.3 2011/04/25 04:59:43 jer Exp $
depend() {
after iptables
use logger
}
+SSHGUARD_PIDFILE=${SSHGUARD_PIDFILE:-/var/run/${SVCNAME}.pid}
start() {
- local LOGS=
- for l in ${SSHGUARD_LOGFILES} ; do
- LOGS="${LOGS} -l ${l}"
- done
-
ebegin "Starting sshguard"
[[ -z ${SSHGUARD_WAIT} ]] && SSHGUARD_WAIT=999
- start-stop-daemon --start --wait ${SSHGUARD_WAIT} --background --quiet \
- --exec /usr/sbin/sshguard -- -i ${SSHGUARD_PIDFILE} ${LOGS}
+ start-stop-daemon --start --wait ${SSHGUARD_WAIT} --background --quiet --exec \
+ /usr/sbin/sshguard -- -i ${SSHGUARD_PIDFILE} ${SSHGUARD_OPTS}
eend $?
}