When I was tring to restart dovecot service, it returns:

Stopping Dovecot Imap: /etc/init.d/functions: line 274: usleep: command not found

PS. I'm using centOS 5.2

Still have this problem, Please help.

link|improve this question

71% accept rate
1  
Does the command actually exist? – Ignacio Vazquez-Abrams May 10 '10 at 18:04
feedback

2 Answers

up vote 0 down vote accepted

as Tcampbell already wrote it should be in initscripts

you can type

ls -al /bin/usleep
rpm -qV initscripts 

to see if something happened with your usleep

if its not there i would suspect that there is a serious disk error or the machine has been broken into

link|improve this answer
ls: /bin/usleep: No such file or directory missing /bin/usleep ..5....T c /etc/inittab S.5....T c /etc/rc.d/rc.local – liuxingruo May 11 '10 at 7:26
yup, looks like someone or something manually removed your /bin/usleep you can fix it by reinstalling (yum reinstall initscripts) but before that you should investigate how and why that happened – Aleksandar Ivanisevic May 11 '10 at 8:38
you can also run rpm -qaV and go through the output to see if anything else is missing or suspiciously changed – Aleksandar Ivanisevic May 11 '10 at 8:39
Problem solved, thanks – liuxingruo May 11 '10 at 13:12
feedback

What distribution? On my RHEL 5 system, usleep is part of the initscripts RPM.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.