-if [ -f /var/lock/subsys/demarcd ]; then
- /etc/rc.d/init.d/demarcd restart 1>&2
-else
- echo "Run \"%{_sbindir}/demarcd -I\" to install new snort sensor and then"
- echo "run \"/etc/rc.d/init.d/demarcd start\" to start demarcd daemon."
- echo "Note that in most cases there is no need to start \"snort\" as"
- echo "separate daemon, so turn it off using \"/sbin/chkconfig snort off\"."
-fi
+%service demarcd restart
+%banner -e -o %{name} <<EOF
+
+Run "%{_sbindir}/demarcd -I" to install new snort sensor and then
+run "service demarcd start" to start demarcd daemon.