Merge branch 'master' of ssh://git.onelab.eu/git/nodemanager
[nodemanager.git] / plugins / initscript-template.sh
1 #!/bin/bash
2 command=$1; shift
3 slicename=$1; shift
4
5 # that can make sense if needed
6 # source /etc/init.d/functions
7
8 function start () {
9     
10 }
11 function stop () {
12
13 }
14 function restart () {
15   stop
16   start
17 }
18 case $command in 
19 start) start ;;
20 stop) stop ;;
21 restart) restart ;;
22 *) echo "Unknown command in initscript $command for slice $slicename" ;;
23 esac