This plugin simply monitors the active running processes to see if a specific process is running.


If it is not running, the restart action is taken. If a restart action is not specified, or left blank, it simply will attempt to re-run the process (as the current running user).


This allows you to specify a startup script or other process to allow startup as a different user.


Takes in a Process to Monitor: the full path to a process to monitor, for example:


ruby script/runner script/ferret_start


Also takes in a Restart Action: the optional command to run (if no restart action given, the process itself is used) to restart the process if it is not running, for example:


cd /path/to/rails/app && /usr/bin/ruby /path/to/rails/appscript/runner /path/to/rails_app/script/ferret_start

1 Comment Comment

I think this plugin could benefit from using the IO#popen calls (or even IO#popen3) so it can catch STDOUT, STDERR for those processes that use them.

Leave a Comment
You must be logged in to your Scout account to leave a comment. Don't have a Scout Account?
Rating:
1 star2 star3 star4 star5 star
(1 vote)
You must have a Scout Account to vote.
Installs: 15
Tested On: OSX, Linux
Source: View Source
All plugins listed in the directory are open source.
Already have a Scout account?   Where do I login? Highgroove Studios Powered By Rails Machine