mirror of
https://github.com/falcosecurity/falco.git
synced 2025-10-22 03:49:36 +00:00
Add init.d scripts to debian/redhat packages as well as postinstall/remove scripts to enable the falco service on install and disable it on uninstall. I still need to add support for daemonization to falco, and change the default output options to match the expected use of being daemonized.
14 lines
210 B
Bash
Executable File
14 lines
210 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
NAME=falco
|
|
|
|
if [ -x "/etc/init.d/$NAME" ]; then
|
|
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
|
|
invoke-rc.d $NAME stop || exit $?
|
|
else
|
|
/etc/init.d/$NAME stop || exit $?
|
|
fi
|
|
fi
|
|
|