#!/bin/sh # usage: sv start mysql postgresql apache ... cd /service case $1 in up|start) todo="-u";; down|stop) todo="-d";; restart) todo="-t";; reload) todo="-h";; kill) todo="-k";; esac svc $todo $* 2> /dev/null