summaryrefslogtreecommitdiff
blob: 2b4b380005c27049d6b7dbdc2083978b76366a16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#! /bin/sh

PATH=$PATH:/usr/local/bin

case "$1" in
    start)
	echo -n "starting openmosixcollector"
	openmosixcollector -d
	;;
    stop)
	echo -n "stopping openmosixcollector"
        openmosixcollector -k
	;;
    checkpoint)
        echo -n "checkpointing openmosixcollector"
        openmosixcollector -c
        ;;
    restart)
        echo -n "restarting openmosixcollector"
        openmosixcollector -r
        ;;
    *)
	echo "Usage: $0 {start|stop|checkpoint|restart}"
	exit 1
	;;
esac