projects/aports·blob master · refs

18 lines · 463 B

1#!/sbin/openrc-run
2
3name="SSHGuard"
4description="Protects hosts from brute-force attacks against SSH and other services"
5
6# Log startup errrors to syslog.
7: ${error_logger="logger -t sshguard -p daemon.err >/dev/null 2>&1"}
8
9command="/usr/sbin/sshguard"
10# $SSHGUARD_OPTS is only for backward compatibility (Alpine <3.19)
11command_args="$SSHGUARD_OPTS $command_args"
12command_background="yes"
13pidfile="/run/$RC_SVCNAME.pid"
14
15depend() {
16 after firewall
17 use logger
18}