Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

[SOLVED] How to disable LOGGING in autofs

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
Vieri
l33t
l33t
Posts: 935
Joined: Sun Dec 18, 2005 12:26 pm

[SOLVED] How to disable LOGGING in autofs

  • Quote

Post by Vieri » Tue Oct 04, 2016 8:52 am

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.
Top
Ant P.
Watchman
Watchman
Posts: 6920
Joined: Sat Apr 18, 2009 7:18 pm
Contact:
Contact Ant P.
Website

  • Quote

Post by Ant P. » Tue Oct 04, 2016 2:54 pm

When did you last run dispatch-conf?

This is what the default conf.d for autofs looks like, no "LOGGING" at all:

Code: Select all

 ~ $ 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.
Top
Vieri
l33t
l33t
Posts: 935
Joined: Sun Dec 18, 2005 12:26 pm

  • Quote

Post by Vieri » Wed Oct 05, 2016 6:12 am

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

From man 5 auto.master:

Code: Select all

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: Select all

filter f_automount { program("automount"); };
log { source(src); filter(f_automount); flags(final); };
Thanks
Top
Post Reply

3 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic