* add support for systemd, OpenRC, SysVinit, and Dinit * add automatic init-system detection through CMake * make libsystemd optional for non-systemd builds * add native service definitions for all supported init systems * add Gentoo ebuild and Alpine APKBUILD packaging support * publish the official BastionGuard source repository * update the README with supported distributions, init systems, repository information, and build documentation
14 lines
351 B
Bash
Executable file
14 lines
351 B
Bash
Executable file
#!/bin/sh
|
|
set -u
|
|
|
|
SERVICECTL=/usr/libexec/bastionguard/bastionguard-service
|
|
|
|
/usr/bin/BastionGuard --update-sanesecurity
|
|
status=$?
|
|
|
|
if [ "$status" -eq 0 ]; then
|
|
"$SERVICECTL" --system try-reload-or-restart clamav-daemon.service 2>/dev/null || \
|
|
"$SERVICECTL" --system try-reload-or-restart clamd.service 2>/dev/null || true
|
|
fi
|
|
|
|
exit "$status"
|