/etc/init.d/verlihub

 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
30
31
32
33
#!/bin/bash
start_verlihub()
{
/usr/local/bin/vh_runhub
}
stop_verlihub()
{
/usr/local/bin/vh_runhub -s
}
restart_verlihub()
{
/usr/local/bin/vh_runhub -f
}
case "$1" in
start)
echo "verlihub is starting..."
start_verlihub
;;
stop)
echo "verlihub is stopping..."
stop_verlihub
;;
restart)
echo "verlihub is restarting..."
restart_verlihub
;;
*)
echo "Usage: $0 start|stop|restart"
esac