#!/bin/bash . /usr/src/m2/framework/bash_functions.sh rm -f /etc/cron.d/pcap_control cp -f /usr/src/m2/helpers/m2_pcap_control/m2_pcap_control /etc/cron.d # now handled by m2_global_logrotate #add_logrotate_if_not_present "/var/log/m2/m2_pcap_control.log" "m2_pcap_control" pkill pcapsipdump &> /dev/null pkill -9 pcapsipdump &> /dev/null service crond restart report "Pcap control script was installed" 0