|
@@ -203,7 +203,18 @@ do
|
|
|
done
|
|
done
|
|
|
|
|
|
|
|
os_check
|
|
os_check
|
|
|
|
|
+
|
|
|
|
|
+if [ $MANUAL -eq 1 ]; then
|
|
|
|
|
+SERVICETOOL=$MANUALSERVICETOOL
|
|
|
|
|
+else
|
|
|
determine_service_tool
|
|
determine_service_tool
|
|
|
|
|
+fi
|
|
|
|
|
+
|
|
|
|
|
+# -l conflicts with -t
|
|
|
|
|
+if [ $MANUAL -eq 1 ] && [ $LIST -eq 1 ]; then
|
|
|
|
|
+ echo "Options conflict: \`\`-t'' and \`\`-l''"
|
|
|
|
|
+ exit 2
|
|
|
|
|
+fi
|
|
|
|
|
|
|
|
if [ $LIST -eq 1 ]; then
|
|
if [ $LIST -eq 1 ]; then
|
|
|
if [[ $LISTTOOL != null ]]; then
|
|
if [[ $LISTTOOL != null ]]; then
|
|
@@ -215,10 +226,6 @@ if [ $LIST -eq 1 ]; then
|
|
|
fi
|
|
fi
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
-if [ $MANUAL -eq 1 ]; then
|
|
|
|
|
-SERVICETOOL=$MANUALSERVICETOOL
|
|
|
|
|
-fi
|
|
|
|
|
-
|
|
|
|
|
# Check the status of a service
|
|
# Check the status of a service
|
|
|
STATUS_MSG=$(eval "$SERVICETOOL" 2>&1)
|
|
STATUS_MSG=$(eval "$SERVICETOOL" 2>&1)
|
|
|
|
|
|