Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

There is a script in /usr/lib/pm-utils/power.d/anacron which restarts anacron if leptops are connected to power. Is it possible to have a similar script restart anacron if (a certain) USB-drive is connected, and how? I want to start the backup to my USB-drive using anacron.

share|improve this question
udev is the way to go. and .... askubuntu.com/questions/25071/… ;) –  Rinzwind Dec 8 '12 at 15:04
That is most likely the best answer, restarting anacron wont do anything anyway. It will only do something if your cron jobs haven't been running. –  coteyr Dec 8 '12 at 16:24

Your Answer


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

Browse other questions tagged or ask your own question.