Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] How to disable LOGGING in autofs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Vieri
l33t
l33t


Joined: 18 Dec 2005
Posts: 887

PostPosted: Tue Oct 04, 2016 8:52 am    Post subject: [SOLVED] How to disable LOGGING in autofs Reply with quote

Hi,

I'd like to get rid of these lines in /var/log/messages:

automount[18650]: st_expire: state 1 path /FTP_site1
automount[18650]: expire_proc: exp_proc = 2984217408 path /FTP_site1
automount[18650]: st_expire: state 1 path /FTP_site2
automount[18650]: expire_proc: exp_proc = 2983164736 path /FTP_site2
automount[18650]: expire_cleanup: got thid 2984217408 path /FTP_site1 stat 0
automount[18650]: expire_cleanup: sigchld: exp 2984217408 finished, switching from 2 to 1
automount[18650]: st_ready: st_ready(): state = 2 path /FTP_site1
automount[18650]: expire_cleanup: got thid 2983164736 path /FTP_site2 stat 0
automount[18650]: expire_cleanup: sigchld: exp 2983164736 finished, switching from 2 to 1
automount[18650]: st_ready: st_ready(): state = 2 path /FTP_site2

# grep -i log /etc/conf.d/autofs
# LOGGING - set default log level "none", "verbose" or "debug"
LOGGING="none"

When I restart /etc/init.d/autofs I notice that automount is launched with these parameters:
/usr/sbin/automount -p /var/run/autofs.pid

I don't understand how the LOGGING variable in conf.d is processed when invoking automount.
The auto.master man page states that the global variable LOGGING is set to "none" by default.

So I guess that logging *should* be disabled in my config.
So how were those automount messages generated and why?
Can I avoid flooding my logs and reduce HDD I/O?

Thanks,

Vieri


Last edited by Vieri on Wed Oct 05, 2016 6:13 am; edited 1 time in total
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Tue Oct 04, 2016 2:54 pm    Post subject: Reply with quote

When did you last run dispatch-conf?

This is what the default conf.d for autofs looks like, no "LOGGING" at all:
Code:
 ~ $ cat /etc/conf.d/autofs
#
# Init syatem options
#
# If the kernel supports using the autofs miscellanous device
# and you wish to use it you must set this configuration option
# to "yes" otherwise it will not be used.
#
USE_MISC_DEVICE="yes"
#
# Use OPTIONS to add automount(8) command line options that
# will be used when the daemon is started.
#
#OPTIONS=""
#

`man 5 auto.master` doesn't mention a LOGGING variable either.
Back to top
View user's profile Send private message
Vieri
l33t
l33t


Joined: 18 Dec 2005
Posts: 887

PostPosted: Wed Oct 05, 2016 6:12 am    Post subject: Reply with quote

I have net-fs/autofs-5.0.7-r4.

From man 5 auto.master:

Code:

GENERAL SYSTEM DEFAULTS CONFIGURATION
       The default value of several general settings may be changed in the configuration file /etc/conf.d/autofs.  They are:

       TIMEOUT
              sets the default mount timeout (program default 600).

       NEGATIVE_TIMEOUT
              Set the default timeout for caching failed key lookups (program default 60). If the equivalent command line option is given it will override this setting.

       MOUNT_WAIT
              Set the default time to wait for a response from a spawned mount(8) before sending it a SIGTERM. Note that we still need to wait for the RPC layer to timeout before the sub-process ex-
              its so this isn't ideal but it is the best we can do. The default is to wait until mount(8) returns without intervention.

       UMOUNT_WAIT
              Set the default time to wait for a response from a spawned umount(8) before sending it a SIGTERM. Note that we still need to wait for the RPC layer to timeout  before  the  sub-process
              exits so this isn't ideal but it is the best we can do.

       BROWSE_MODE
              Maps are browsable by default (program default "yes").

       MOUNT_NFS_DEFAULT_PROTOCOL
              Specify the default protocol used by mount.nfs(8) (program default 3). Since we can't identify this default automatically we need to set it in the autofs configuration.

       APPEND_OPTIONS
              Determine  whether  global  options,  given on the command line or per mount in the master map, are appended to map entry options or if the map entry options replace the global options
              (program default "yes", append options).

       LOGGING
              set default log level "none", "verbose" or "debug" (program default "none").


Anyway, I solved the issue through syslog-ng instead:

Code:

filter f_automount { program("automount"); };
log { source(src); filter(f_automount); flags(final); };


Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum