[BlueOnyx:21722] 5209R, fix_syslog.sh, lsof
Carl Byington
carl at five-ten-sg.com
Sat Feb 10 11:46:20 -05 2018
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
/usr/sausalito/handlers/base/swupdate/yum-update.sh runs
/usr/sausalito/sbin/fix_syslog.sh which contains
if [ `lsof -c rsyslogd | grep -c var.log` -eq 1 ]; then
apparently that runs without /sbin or /usr/sbin in the path, so lsof is
not found. That should probably be:
if [ `/sbin/lsof -c rsyslogd | grep -c var.log` -eq 1 ]; then
Also, since this is on Centos 7 with systemctl, the service stop/start
should probably be done with systemctl.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
iEYEAREKAAYFAlp/IcsACgkQL6j7milTFsF2VACeLHI1PQk0Yl9KSYJyhjdnS3dT
L9wAnAsIYUEu9/pLweU63y6Msg9TRH8N
=pRJ8
-----END PGP SIGNATURE-----
More information about the Blueonyx
mailing list