“logrotate” command

[root@thalesrfs01 etc]# logrotate --help
Usage: logrotate [OPTION…]
-d, --debug Don't do anything, just test (implies -v)
-f, --force Force file rotation
-m, --mail=command Command to send mail (instead of `/bin/mail')
-s, --state=statefile Path of state file
-v, --verbose Display messages during rotation
-l, --log=STRING Log file
--version Display version information
Help options:
-?, --help Show this help message
--usage Display brief usage message
[root@thalesrfs01 etc]#
https://github.com/logrotate/logrotate

nCipher HSM log file rotation

The solution is based on CentOS “logrotation”

bash-4.2$ ls -la
total 28
drwxrwsr-x. 2 nfast nfast 177 Jan 15 22:14 .
drwxrwxr-x. 18 root root 230 Jan 7 01:32 ..
-rw-rw-r--. 1 root nfast 0 Jan 7 01:33 cmdadp-debug.log
-rw-rw-r--. 1 root nfast 0 Jan 7 01:33 cmdadp.log
-rw-r--r--. 1 nfast nfast 11146 Jan 15 22:40 hardserver.log
-rw-r-----. 1 nfast nfast 3932 Jan 15 20:56 hardserver.log-20190115.gz
-rw-r-----. 1 nfast nfast 6 Jan 15 20:56 hardserver.pid
lrwxrwxrwx. 1 root nfast 29 Jan 7 01:32 logfile -> /opt/nfast/log/hardserver.log
-rw-r-----. 1 raserv raserv 3671 Jan 15 20:56 raserv.log
-rw-r-----. 1 raserv raserv 6 Jan 15 20:56 raserv.pid
bash-4.2$ exit
[root@thalesrfs01 logrotate.d]# pwd
/etc/logrotate.d
[root@thalesrfs01 logrotate.d]# cat hardserver
/opt/nfast/log/hardserver.log {
su nfast nfast
missingok
notifempty
compress
size 100
daily
create 0644 nfast nfast
}
[root@thalesrfs01 logrotate.d]#

yum update (Oralinux 6)

[root@hpeucmdbsaas1 cis-cat-full]# yum update
Loaded plugins: security
public_ol6_UEKR3_latest | 1.2 kB 00:00
public_ol6_latest | 1.4 kB 00:00
public_ol6_latest/primary | 6.6 MB 00:00
public_ol6_latest 11163/11163
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package ConsoleKit.x86_64 0:0.4.1-3.el6 will be updated
---> Package ConsoleKit.x86_64 0:0.4.1-6.el6 will be an update
---> Package ConsoleKit-libs.x86_64 0:0.4.1-3.el6 will be updated
---> Package ConsoleKit-libs.x86_64 0:0.4.1-6.el6 will be an update
---> Package SDL.x86_64 0:1.2.14-3.el6 will be updated
---> Package SDL.x86_64 0:1.2.14-7.el6_7.1 will be an update
---> Package abrt.x86_64 0:2.0.8-21.0.1.el6 will be updated
---> Package abrt.x86_64 0:2.0.8-44.0.1.el6 will be an update
--> Processing Dependency: abrt-python = 2.0.8-44.0.1.el6 for package: abrt-2.0.8-44.0.1.el6.x86_64
--> Processing Dependency: satyr >= 0.11 for package: abrt-2.0.8-44.0.1.el6.x86_64
--> Processing Dependency: python-argparse for package: abrt-2.0.8-44.0.1.el6.x86_64
--> Processing Dependency: libreport-plugin-ureport for package: abrt-2.0.8-44.0.1.el6.x86_64
--> Processing Dependency: libsatyr.so.3()(64bit) for package: abrt-2.0.8-44.0.1.el6.x86_64
---> Package abrt-addon-ccpp.x86_64 0:2.0.8-21.0.1.el6 will be updated