restart several init scripts at once

I just came across this neat shell command to restart all courier services in one go:

find /etc/init.d/ | grep courier | while read line; do $line restart; done

You could replace the grep courier with any other name you would like to use. This is one of those things I love about Linux 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.