Create a message switch RPM with the switch and an init.d script
Add chkconfig %post and %preun to message_switch