Skip to content

Commit

Permalink
app-admin/sshguard: Fix init.d script
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.71, Repoman-2.3.17
Fixes: https://bugs.gentoo.org/688820
Signed-off-by: Jeroen Roovers <[email protected]>
  • Loading branch information
Jeroen Roovers committed Aug 8, 2019
1 parent caf1f5d commit dc154ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#!/sbin/openrc-run
# Copyright 1999-2018 Gentoo Foundation
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

command="/usr/sbin/sshguard"
pidfile="${SSHGUARD_PIDFILE:-/var/run/${SVCNAME}.pid}"
command_args="-i \"${pidfile}\" ${SSHGUARD_OPTS}"
command_background=1
start_stop_daemon_args="--wait ${SSHGUARD_WAIT:-999} --interpreted --quiet"
start_stop_daemon_args="--background --wait ${SSHGUARD_WAIT:-999} --interpreted --quiet"

depend() {
after iptables
Expand Down
2 changes: 1 addition & 1 deletion app-admin/sshguard/sshguard-2.4.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ PATCHES=(
src_install() {
default

newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN}
newinitd "${FILESDIR}"/${PN}.initd-r2 ${PN}
newconfd "${FILESDIR}"/${PN}.confd ${PN}

insinto /etc
Expand Down

0 comments on commit dc154ea

Please sign in to comment.