mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-14 04:16:17 +00:00
fix(scripts): correct kernel module name
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
This commit is contained in:
parent
b887c92c91
commit
762ef015b8
@ -64,8 +64,8 @@ do_start()
|
|||||||
# 2 if daemon could not be started
|
# 2 if daemon could not be started
|
||||||
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
|
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
|
||||||
|| return 1
|
|| return 1
|
||||||
if [ ! -d /sys/module/falco_probe ]; then
|
if [ ! -d /sys/module/falco ]; then
|
||||||
/sbin/modprobe falco-probe || exit 1
|
/sbin/modprobe falco || exit 1
|
||||||
fi
|
fi
|
||||||
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
|
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
|
||||||
$DAEMON_ARGS \
|
$DAEMON_ARGS \
|
||||||
@ -96,7 +96,7 @@ do_stop()
|
|||||||
# sleep for some time.
|
# sleep for some time.
|
||||||
start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
|
start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
|
||||||
[ "$?" = 2 ] && return 2
|
[ "$?" = 2 ] && return 2
|
||||||
/sbin/rmmod falco-probe
|
/sbin/rmmod falco
|
||||||
# Many daemons don't delete their pidfiles when they exit.
|
# Many daemons don't delete their pidfiles when they exit.
|
||||||
rm -f $PIDFILE
|
rm -f $PIDFILE
|
||||||
return "$RETVAL"
|
return "$RETVAL"
|
||||||
|
@ -53,8 +53,8 @@ start() {
|
|||||||
# [ -f $config ] || exit 6
|
# [ -f $config ] || exit 6
|
||||||
echo -n $"Starting $prog: "
|
echo -n $"Starting $prog: "
|
||||||
daemon $exec --daemon --pidfile=$pidfile
|
daemon $exec --daemon --pidfile=$pidfile
|
||||||
if [ ! -d /sys/module/falco_probe ]; then
|
if [ ! -d /sys/module/falco ]; then
|
||||||
/sbin/modprobe falco-probe || return $?
|
/sbin/modprobe falco || return $?
|
||||||
fi
|
fi
|
||||||
retval=$?
|
retval=$?
|
||||||
echo
|
echo
|
||||||
@ -67,7 +67,7 @@ stop() {
|
|||||||
killproc -p $pidfile
|
killproc -p $pidfile
|
||||||
retval=$?
|
retval=$?
|
||||||
echo
|
echo
|
||||||
/sbin/rmmod falco-probe
|
/sbin/rmmod falco
|
||||||
[ $retval -eq 0 ] && rm -f $lockfile
|
[ $retval -eq 0 ] && rm -f $lockfile
|
||||||
return $retval
|
return $retval
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user