[Voyage-linux] Cleanup warning in logfiles
Teco Boot
(spam-protected)
Fri Dec 20 02:55:40 HKT 2013
Startup is clean now. Thanks.
In auth.log (or syslog where I put all logging), I eliminated repeating cron messages:
Dec 18 23:18:01 localhost CRON[32034]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 18 23:18:01 localhost CRON[32034]: pam_unix(cron:session): session closed for user root
Dec 18 23:19:01 localhost CRON[32262]: pam_env(cron:session): Unable to open env file: /etc/default/locale: No such file or directory
Dec 19 18:46:01 localhost /USR/SBIN/CRON[11631]: (root) CMD ( test "`my_test`" = "" && do_something)
1. I added a /etc/default/locale file, with for example:
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
2. I suppressed pam warnings in in /etc/pam.d/common-session-noninteractive:
--- common-session-noninteractive.org 2013-12-15 10:31:39.000000000 +0000
+++ common-session-noninteractive 2013-12-19 06:25:20.000000000 +0000
@@ -21,5 +21,6 @@
# since the modules above will each just jump around
session required pam_permit.so
# and here are more per-package modules (the "Additional" block)
+session [success=1 default=ignore] pam_succeed_if.so service in cron quiet use_uid
session required pam_unix.so
# end of pam-auth-update config
3. I set cron log level to 0 in /etc/default/cron:
--- cron.org 2012-07-02 23:46:37.000000000 +0000
+++ cron 2013-12-19 06:35:22.000000000 +0000
@@ -15,7 +15,7 @@
# EXTRA_OPTS='-l'
#
# Or, to log standard messages, plus jobs with exit status != 0:
-# EXTRA_OPTS='-L 5'
+EXTRA_OPTS='-L 0'
#
# For quick reference, the currently available log levels are:
# 0 no logging (errors are logged regardless)
Maybe put in Voyage?
Teco
More information about the Voyage-linux
mailing list