LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-18-2003, 12:09 PM   #1
360
Member
 
Registered: Jun 2001
Distribution: FC4
Posts: 136

Rep: Reputation: 15
Question How do I turn logging off in qmail?


Hi,

I need to save resources and disk space.
How do I turn logging off or to errors only in qmail?

I have already edited /etc/syslog.conf for mail errors only.

Thanks,

360
 
Old 08-19-2003, 01:08 AM   #2
Sutekh
Member
 
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273

Rep: Reputation: 30
if you have installed daemontools you will have a supervise directory off root (eg /service)

if this sounds right then change into service and you should see two directories qmail-send and qmail-smtp (these are actually links back to /var/qmail/supervise). ok so under both of these dirs you will find a run file and two directories. One of the dirs is called log and in this dir is another run file. The presence of this run file is what starts the logger. Get rid of the run file and you will cease logging.

or better still touch down in the log directory this will stop it and you can just remove down if you want the logging back
 
Old 08-19-2003, 01:17 AM   #3
360
Member
 
Registered: Jun 2001
Distribution: FC4
Posts: 136

Original Poster
Rep: Reputation: 15
I changed run to run.down in the /var/qmail/supervise/qmail-smtpd/log dir.

This will stop logging...
However the process: /service/qmail-smtpd/log perpetually tries to restart itself.

There must be a better way.

How can I send all logs to /dev/null?

Maybe I could creat a simlink from /var/log/qmail/smtpd to /dev/null but the smtpd dir has three files in it.

Thanks.
 
Old 08-20-2003, 04:15 PM   #4
Sutekh
Member
 
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273

Rep: Reputation: 30
not run.down, create a new file called down in that directory

the file can be empty (quickest way is to change to that dir and type touch down)

in the short term you can also use the svc command to control the supervised jobs, typing svc -d /var/qmail/supervise/*/log for example should kill all the logging
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Qmail logging Jukas Linux - Software 0 11-10-2005 12:13 PM
Is it ok to turn system logging off? servnov Linux - Newbie 1 08-15-2005 03:12 PM
Turn off logging for specific cron job guyk Linux - Software 10 10-24-2004 11:23 PM
Logging mails sent through Qmail ramnath Programming 1 07-23-2004 07:04 AM
Howto Turn of X messages when logging out of KDE lacerto Linux - General 0 06-23-2004 01:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration