mirror of
https://github.com/falcosecurity/falco.git
synced 2026-01-19 08:57:10 +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.
17 lines
339 B
Bash
Executable File
17 lines
339 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
NAME=falco
|
|
|
|
if [ -x "/etc/init.d/$NAME" ]; then
|
|
update-rc.d $NAME defaults >/dev/null
|
|
fi
|
|
|
|
if [ -x "/etc/init.d/$NAME" ]; then
|
|
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
|
|
invoke-rc.d $NAME start || exit $?
|
|
else
|
|
/etc/init.d/$NAME start || exit $?
|
|
fi
|
|
fi
|