Commit Graph

26 Commits (23bebb707c7dbbb2c71c42b3435c2712268124b8)

Author SHA1 Message Date
Matthew D. Scholefield 92cf04aad4 Add update notification 2017-09-05 15:46:24 -05:00
Steve Penrod 370b51ff6a Tame the mycroft.sh script
The mycroft.sh script uses the 'screen' command to run the various
processes that make up Mycroft Core.  When they are stopped with
"./mycroft.sh stop", it was using the screen 'quit' command.  This
ends the process abruptly, not allowing services to shutdown
cleanly.

This changes it to send a shutdown request first, equivalent of a
Ctrl-C.  If the service doesn't shutdown after 2 seconds it is
then killed.

This specifically prevents issues where a skill expected and did
not receive a call to the shutdown() method.
2017-08-31 17:53:30 -07:00
Åke Forslund bfc2d3eced Starup audio process together with mycroft 2017-07-31 13:37:17 +02:00
general-shift d96b975b7a Added ./mycroft.sh restart functionality 2017-06-30 11:26:34 -05:00
Matthew D. Scholefield 8e17fe3fd4 Improve mycroft.sh (#835)
* Improve mycroft.sh

 - Refactor to make adding other scripts easier
 - Stop all skills before starting
 - Handle multiple screen instances running at the same time
 - Notify the user by screen name (not as pretty but makes more sense)
 - Clean up code:
   - Change if chain to switch statement
   - use cat to display usage rather than multiple echo statements

* Small mycroft.sh refactor
 - Auto-generate .screen files
 - Add start-mycroft-custom for other executables
 - Use echo instead of cat (originally didn't realize multiline quotes were a thing)
 - Rename variable screen_name to uppercase to be consistent

* Decrease mycroft.sh sleep time to 0.1 seconds
Less time to wait and still seems to work fine on all tested platforms
2017-06-15 17:42:56 -05:00
Augusto Monteiro 'Sparky d21b0bd948 #671 - Fixing autoload when folder doesn't exists 2017-04-17 11:27:07 -07:00
penrods a2053712ee More CLI fixes/enhancements for #648
* Added log filtering commands to the CLI.  So you can do things within the CLI like:
   :filter DEBUG  (filters out any lines containing "DEBUG")
   :filter remove DEBUG (stop filtering "DEBUG")
   :filter "not this" (filters out any log lines containing "not this")
   :filter list (displays active filters)
   :filter clear (removes all filters)
* Added a ~/.mycroft-cli.conf configuration file.  It currently contains the last-used filters.
* The mycroft.sh scripts were firing up the "fancy" CLI in the background and logging it constantly.  This resulted in huge log files because of the constantly updated microphone level indicator.
2017-04-12 00:15:37 -07:00
BrokenClock 2833104a3e corrected the "stop" process
changed start-mycroft voice (surely a typo) to stop-mycroft-voice
2017-04-07 18:52:15 +02:00
Augusto Monteiro 'Sparky 2e172433aa #546 - Adding feedback to user that mycroft is updating 2017-04-06 16:30:58 -07:00
Karl Fezer ffa6d4c50b Adds ./mycroft.sh start -d option that boots directly into the cli
modified:   mycroft.sh
2017-02-27 13:35:55 -06:00
Ethan Ward bfacbe0087 Issues #259 - Move scripts out of root directory (#301) 2016-07-27 09:36:47 -05:00
Ethan Ward 3f0de9537e Revert "Issues #259 - Move scripts and config out of root directory" (#297) 2016-07-18 15:47:46 -05:00
Ethan Ward 69f3a6cd7a Issues #259 - Move scripts and config out of root directory (#285) 2016-07-18 15:44:25 -05:00
Jason Hines 27b73844d4 Noticed that FAQ/Common Errors section of README.md said that mycroft.… (#221)
* Noticed that FAQ/Common Errors section of README.md said that mycroft.sh would start the cli, so I added it.

* changed three to four for FAQ since four processes are listed.

* added --quiet option to start.sh cli to prevent echo when using the cli

* per @the7erm sugestion: changed the log flush to 1 second for screen.

* modified mycroft.sh to support starting in three modes:
- service, skills, voice, cli --quiet
- service skills, voice
- service skills, cli

* Added changes to quick start to reflect changes to mycroft.sh
2016-06-23 12:13:45 -05:00
Jason Hines 1cec7aeb43 Removed ! typo from if statement. Added delay before verifying screen. 2016-06-22 13:25:18 -04:00
Jason Hines 390999c295 Merge remote-tracking branch 'upstream/master'
verified conflicts in mycroft.sh
2016-06-22 12:58:57 -04:00
Jason Hines 8bb986e463 Added function to verify that service has started and output a message and the log if it didn't. 2016-06-22 12:46:47 -04:00
Jason Hines 58bacc85cd Added code to get script directory so that the script can be run from any path 2016-06-22 12:07:17 -04:00
Martin Wimpress 81da60b7f0 Add #! to mycroft.sh
The pull request simply adds a crunch bang to the `mycroft.sh` shell script to prevent the follow error:

    Failed to execute process './mycroft.sh'. Reason:
    exec: Exec format error
    The file './mycroft.sh' is marked as an executable but could not be run by the operating system.
2016-06-21 15:45:03 +01:00
Åke Forslund ff70841418 make mycroft.sh directly exit on error 2016-06-19 08:43:08 +02:00
Jason Hines 746bcd6636 added start, stop and restart options. And added usage message. 2016-06-18 12:58:03 -04:00
Jason Hines 1ce9109124 modified mycroft.sh so that logs will work. files ending in .screen are the config files for each screen. 2016-06-16 13:01:06 -04:00
Jason Hines 3a9d3557c3 Added optional stop to script per aatchison request 2016-06-15 14:52:59 -04:00
aatchison d90b6fe910 added a logs directory 2016-06-13 20:00:51 -05:00
aatchison 9f738553e3 corrected a slight typo 2016-06-13 19:53:08 -05:00
Jason Hines 68bc1bca0a added mycroft startup script using detached screens 2016-06-13 18:31:38 -04:00