- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Automatically "recreate" mail.log on reboot ?
Operating System - HP-UX
1752490
Members
5978
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-05-2004 05:52 AM
тАО03-05-2004 05:52 AM
Re: Automatically "recreate" mail.log on reboot ?
here is how i do it in the /sbin/init.d/sendmail startup script
/usr/bin/mv /var/adm/syslog/mail.log /tmp
/usr/bin/touch /var/adm/syslog/mail.log
/usr/bin/chmod 000 /var/adm/syslog/mail.log
/usr/bin/chmod a+r /var/adm/syslog/mail.log
I don't have access to the box, so this is a paraphrase.
SEP
/usr/bin/mv /var/adm/syslog/mail.log /tmp
/usr/bin/touch /var/adm/syslog/mail.log
/usr/bin/chmod 000 /var/adm/syslog/mail.log
/usr/bin/chmod a+r /var/adm/syslog/mail.log
I don't have access to the box, so this is a paraphrase.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-05-2004 06:04 AM
тАО03-05-2004 06:04 AM
Re: Automatically "recreate" mail.log on reboot ?
Sri makes a good point - as always....
syslogd start *before* (220 vs 540) than sendmail.
So it's probably gotta be a diff startup OR or sendmail bounce to make sure.
Jeff
syslogd start *before* (220 vs 540) than sendmail.
So it's probably gotta be a diff startup OR or sendmail bounce to make sure.
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-05-2004 06:06 AM
тАО03-05-2004 06:06 AM
Re: Automatically "recreate" mail.log on reboot ?
Another alternative is to use something like logrotate:
Logrotate is designed to ease administration of systems that generate large numbers of log files. It allows automatic rotation, compression, removal, and mailing of log files. Each log file may be handled daily, weekly, monthly, or when it grows too large.
http://hpux.ee.ualberta.ca/hppd/hpux/Sysadmin/logrotate-2.5/
Rgds...Geoff
Logrotate is designed to ease administration of systems that generate large numbers of log files. It allows automatic rotation, compression, removal, and mailing of log files. Each log file may be handled daily, weekly, monthly, or when it grows too large.
http://hpux.ee.ualberta.ca/hppd/hpux/Sysadmin/logrotate-2.5/
Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP