ClearOS Bug Tracker


View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015001ClearOSsnortpublic2017-05-20 11:152019-06-18 08:29
ReporterNickH 
Assigned To 
PrioritynormalSeveritytweakReproducibilityalways
StatusclosedResolutionsuspended 
PlatformOSOS Version
Product Version7.3.1 
Target VersionFixed in Version 
Summary0015001: Snort restarts twice on logrotate
DescriptionIn /etc/logrotate.d/snort there are two sections, on to rotate /var/log/snort/syslog and one to rotate /var/log/snortsam. Each section restarts snort. This is silly. Both section should be combined into a single function by making the function:

/var/log/snort/syslog /var/log/snortsam {
    missingok
    postrotate
        /sbin/service snort condrestart >/dev/null 2>&1 || true
    endscript
}

This would slicken up the log rotation and save on some system resources.
Steps To ReproduceInstall and run snort and logrotate.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0005691)
NickH (developer)
2017-05-20 12:00

Forgot to add "sharedscripts" between the missingok and postrotate lines.
(0012201)
NickH (developer)
2019-06-18 08:28

Migrated to https://gitlab.com/clearos/clearfoundation/snort/issues/3 [^]

- Issue History
Date Modified Username Field Change
2017-05-20 11:15 NickH New Issue
2017-05-20 12:00 NickH Note Added: 0005691
2017-05-23 22:12 user2 Status new => acknowledged
2019-06-18 08:28 NickH Note Added: 0012201
2019-06-18 08:29 NickH Status acknowledged => closed
2019-06-18 08:29 NickH Resolution open => suspended