Skip to content
This repository was archived by the owner on Apr 16, 2021. It is now read-only.

/etc/cron.d/sensor-newday updates #439

Closed
GoogleCodeExporter opened this issue Mar 24, 2015 · 2 comments
Closed

/etc/cron.d/sensor-newday updates #439

GoogleCodeExporter opened this issue Mar 24, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

# /etc/cron.d/sensor-newday
#
# crontab entry to restart the sensor processes ensuring rotation of logs.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

00 0    * * * root /usr/sbin/nsm_sensor_ps-daily-restart
01 0    * * * root /etc/init.d/syslog-ng restart
10 0    * * * root /etc/init.d/syslog-ng restart
00 12    * * * root /usr/sbin/nsm_sensor_ps-restart --only-sancp-agent 
>/dev/null
01 12    * * * root /usr/sbin/nsm_sensor_ps-restart --only-http-agent >/dev/null
02 12    * * * root /usr/sbin/nsm_sensor_ps-restart --only-ossec-agent 
>/dev/null
03 12    * * * root /usr/sbin/nsm_sensor_ps-restart --only-pads-agent >/dev/null
04 12    * * * root /usr/sbin/nsm_sensor_ps-restart --only-pcap-agent >/dev/null
05 12    * * * root /usr/sbin/nsm_sensor_ps-restart --only-snort-agent 
>/dev/null

should redirect all output from syslog-ng restart to /dev/null

Original issue reported on code.google.com by doug.bu...@gmail.com on 11 Dec 2013 at 1:58

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant