]> matita.cs.unibo.it Git - helm.git/blob - helm/scripts/init.d/helm
ocaml 3.09 transition
[helm.git] / helm / scripts / init.d / helm
1 #!/bin/sh
2 #
3 # init.d script for HELM daemons
4 #
5 # by --Zack <zack@cs.unibo.it>
6 # Created: Tue,  8 Oct 2002 17:18:17 +0200
7 # Last-Modified: Tue,  8 Oct 2002 17:18:17 +0200
8
9 DAEMONS=""
10 if [ -f /etc/default/helm ]; then
11   . /etc/default/helm
12 fi
13
14 case "$1" in
15
16   start|stop|restart|force-reload|reload)
17     for d in $DAEMONS; do
18       /etc/init.d/$d $1
19     done
20     ;;
21
22   *)
23     echo
24     echo "Usage: /etc/init.d/helm { start | stop | restart | force-reload | reload }" >&2
25     echo
26     if [ -z "$DAEMONS" ]; then
27       echo "Actually, no daemons are considered!"
28     else
29       echo "Actually, considered daemons are: $DAEMONS"
30     fi
31     echo "to change this setting see /etc/default/helm"
32     echo
33     exit 1
34     ;;
35
36 esac
37