Commit 617915f0 authored by Adam Wujek's avatar Adam Wujek 💬

rootfs: stop monit and snmpd before restart

stop explicitly snmpd before reboot to avoid messages:
Jan  1 00:54:23 snmpd[1290]: read_config_store open failure on /var/lib/snmp/snmpd.conf
Otherwise snmpd was stopped after unmount of filesystems.

Stop monit to avoid possible respawn of processes during shutting down.

remove "null" from the line in /etc/inittab
null::shutdown:/etc/init.d/rcK
to get printouts to the console.
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent a52507c9
......@@ -31,6 +31,6 @@ ttyS0::respawn:/bin/ash --login
# Stuff to do before rebooting
# run all /etc/rcS/K??* scripts
null::shutdown:/etc/init.d/rcK
::shutdown:/etc/init.d/rcK
null::shutdown:/bin/umount -a -r
../init.d/monit.sh
\ No newline at end of file
../init.d/snmpd
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment