mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
Core Update 170: Stop Suricata before extracting files
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>
This commit is contained in:
@@ -45,6 +45,7 @@ done
|
||||
|
||||
# Stop services
|
||||
/etc/init.d/rc.d/unbound stop
|
||||
/etc/init.d/rc.d/suricata stop
|
||||
|
||||
KVER="xxxKVERxxx"
|
||||
|
||||
@@ -171,7 +172,7 @@ sed -i /etc/collectd.conf \
|
||||
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user