Stopping services before potentially tampering with files they use is a
more sane approach than doing the latter and hope the running service
can cope with it. Suricata, at least, reportedly doesn't.
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
# Stop services
/etc/init.d/rc.d/unbound stop
+/etc/init.d/rc.d/suricata stop
KVER="xxxKVERxxx"
# Start services
/etc/init.d/rc.d/unbound start
-/etc/init.d/rc.d/suricata restart
+/etc/init.d/rc.d/suricata start
# Harden mount options of /boot
sed -e -i "s@[[:space:]]*\/boot[[:space:]]*auto[[:space:]]*defaults[[:space:]]*@ \/boot auto defaults,nodev,noexec,nosuid @g" /etc/fstab