Adds ./mycroft.sh start -d option that boots directly into the cli
modified:   mycroft.sh
@@ -17,7 +17,8 @@ function usage {
echo " -h this help message"
echo " start starts mycroft-service, mycroft-skills, mycroft-voice and mycroft-cli in quiet mode"
echo " start -v starts mycroft-service, mycroft-skills and mycroft-voice"
- echo " start -c starts mycroft-service, mycroft-skills and mycroft-cli"
+ echo " start -c starts mycroft-service, mycroft-skills and mycroft-cli in background"
+ echo " start -d starts mycroft-service and mycroft skills in quiet mode and an active mycroft-cli"
echo " stop stops mycroft-service, mycroft-skills and mycroft-voice"
echo " restart restarts mycroft-service, mycroft-skills and mycroft-voice"
echo
@@ -48,6 +49,13 @@ function start-mycroft {
echo "Mycroft $1$2 started"
}
+function debug-start-mycroft {
+ screen -c $SCRIPTS/mycroft-$1.screen $DIR/start.sh $1 $2
+ sleep 1
+ verify-start mycroft-$1$2
+ echo "Mycroft $1$2 started"
+}
+
function stop-mycroft {
if screen -list | grep -q "$1";
then
@@ -102,6 +110,12 @@ then
start-mycroft skills
start-mycroft cli
exit 0
+elif [[ "$1" == "start" && "$2" == "-d" ]]
+then
+ start-mycroft service
+ start-mycroft skills
+ debug-start-mycroft cli
+ exit 0
elif [[ "$1" == "stop" && -z "$2" ]]
then
stop-mycroft service
