Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
1  
Does the command actually exist? –  Ignacio Vazquez-Abrams May 10 '10 at 18:04
    
Next time when a command is missing run yum provides '*bin/command' to see what package provides it and then install it. –  Cristian Ciupitu Feb 21 '13 at 17:51

2 Answers 2

up vote 1 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

share|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

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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