Browse Source

Elimina 'sleepctl'

nicolopalazzini 5 years ago
parent
commit
b99b517230
1 changed files with 0 additions and 50 deletions
  1. 0 50
      sleepctl

+ 0 - 50
sleepctl

@@ -1,50 +0,0 @@
-#!/bin/bash
-
-#set -e #(errexit) esce quando un comando ritorna un valore diverso da zero (non va bene per come è implementata la funzione monitor)
-set -u #tratta le variabili non definite come errori
-set -o pipefail #ritorna zero se tutto è andato a buon fine (di default guarda solo l'ultimo comando)
-
-command_parsed=0
-
-. functions
-. conf
-
-while getopts 'hms:k:' OPTION; do
-  case "$OPTION" in
-	m) #funzione monitor
-		monitor
-		;;
-	s) #funzione start
-		node=$OPTARG
-		if [ $node == '1' ];then
-  			start_1
-		elif [ $node == '2' ];then
-			start_2
-		else
-  		 	start_node $node
-		fi
-		;;
-	k)  #funzione kill
-		node=$OPTARG
-		if [ $node == '1' ];then
-  			kill_1
-		elif [ $node == '2' ];then
-			kill_2
-		else
-  		 	kill_process $node
-		fi
-		;;
-	h)
-		print_help      
-		;;
-	?)
-		print_usage
-		exit 1
-	    ;;
-  esac
-done
-
-if [ $command_parsed -eq 0 ]
-then
-    print_usage
-fi