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.

  • 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
  • I use Debian, not Fedora! You need the Debian way of doing it! – sage Jan 5 at 20:45

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

  • 1
    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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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