LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-05-2010, 01:37 AM   #1
linux_bud
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Rep: Reputation: 0
error running postrotate script


Hi,

I am getting an email as follows from cron.daily :

/etc/cron.daily/logrotate:

/sbin/killall -HUP radiusd
: line 1: /sbin/killall: No such file or directory
error: error running postrotate script for /var/log/vsftpd/logfile


I need have configured the following in /etc/logrotate.conf file :

weekly
rotate 4
create
include /etc/logrotate.d
/var/log/wtmp {
monthly
create 0664 root utmp
rotate 1
}
/var/log/radius/logfile {
daily
rotate 4
postrotate
/sbin/killall -HUP vsftpd
endscript
}

I am not sure where i am going wrong. Please advise, if i need to make changes.
 
Old 04-05-2010, 02:29 AM   #2
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 4&5, Fedora 10, CentOS 5.4, IPCop
Posts: 569

Rep: Reputation: 55
Perhaps the path you've specified to killall is wrong?
Code:
2.6.18-164.15.1.el5.centos.plus[root@www logrotate.d]# which killall
/usr/bin/killall
2.6.18-164.15.1.el5.centos.plus[root@www logrotate.d]#
 
  


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
why am getting error ksh: syntax error: `fi' unexpected while running script deb4you Linux - Newbie 4 09-06-2008 08:37 AM
error running postrotate script farslayer Linux - General 1 07-19-2007 01:41 AM
error in running the script bhandu Linux - Newbie 4 07-03-2007 09:24 AM
i get an error message running php script inside a cgi script. repolona Linux - Software 0 02-22-2007 09:10 PM
Error running postrotate script... Jake_B Red Hat 0 09-19-2005 04:34 PM


All times are GMT -5. The time now is 06:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration