diff --git a/config/logs/web-1.log b/config/logs/web-1.log deleted file mode 100755 index d28922e..0000000 --- a/config/logs/web-1.log +++ /dev/null @@ -1,9 +0,0 @@ -[33mStarting up http-server, serving [39m[36m.[39m[33m on port: [39m[36m8080[39m -Hit CTRL-C to stop the server -mon : write mon pid to /Users/maxogden/src/js/monu/config/pids/web-1.mon.pid -mon : child 13973 -mon : write pid to /Users/maxogden/src/js/monu/config/pids/web-1.pid -mon : shutting down -mon : kill(-13972, 3) -mon : waiting for exit -mon : bye :) diff --git a/config/logs/web-2.log b/config/logs/web-2.log deleted file mode 100755 index b7065a1..0000000 --- a/config/logs/web-2.log +++ /dev/null @@ -1,9 +0,0 @@ -[33mStarting up http-server, serving [39m[36m.[39m[33m on port: [39m[36m8086[39m -Hit CTRL-C to stop the server -mon : write mon pid to /Users/maxogden/src/js/monu/config/pids/web-2.mon.pid -mon : child 13975 -mon : write pid to /Users/maxogden/src/js/monu/config/pids/web-2.pid -mon : shutting down -mon : kill(-13974, 3) -mon : waiting for exit -mon : bye :) diff --git a/config/logs/web-3.log b/config/logs/web-3.log deleted file mode 100755 index 9a53695..0000000 --- a/config/logs/web-3.log +++ /dev/null @@ -1,9 +0,0 @@ -[33mStarting up http-server, serving [39m[36m.[39m[33m on port: [39m[36m8090[39m -Hit CTRL-C to stop the server -mon : write mon pid to /Users/maxogden/src/js/monu/config/pids/web-3.mon.pid -mon : child 13977 -mon : write pid to /Users/maxogden/src/js/monu/config/pids/web-3.pid -mon : shutting down -mon : kill(-13976, 3) -mon : waiting for exit -mon : bye :) diff --git a/configure.js b/configure.js index 58a000d..dc32616 100644 --- a/configure.js +++ b/configure.js @@ -7,9 +7,9 @@ var $ = require('jquery') Ractive.DEBUG = false var templates = { - configure: fs.readFileSync('./configure.tmpl').toString(), - detail: fs.readFileSync('./detail.tmpl').toString(), - about: fs.readFileSync('./about.html').toString() + configure: fs.readFileSync(__dirname + '/configure.tmpl').toString(), + detail: fs.readFileSync(__dirname + '/detail.tmpl').toString(), + about: fs.readFileSync(__dirname + '/about.html').toString() } var state = {} diff --git a/configure.html b/index.html similarity index 100% rename from configure.html rename to index.html diff --git a/index.js b/index.js index 567efd5..0aff405 100644 --- a/index.js +++ b/index.js @@ -74,7 +74,7 @@ app.on('ready', function() { }) function loadConfig() { - var configFile = './config/config.json' + var configFile = __dirname + '/config/config.json' var conf try { @@ -109,7 +109,7 @@ app.on('ready', function() { }) configure.setPosition(size.workArea.width - 500, size.workArea.y) configure.on('blur', hideConfigure) - configure.loadUrl('file://' + __dirname + '/configure.html') + configure.loadUrl('file://' + __dirname + '/index.html') } function hideConfigure() { diff --git a/package.json b/package.json index 3bdfef2..3e664e5 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "name": "monu", + "productName": "Monu", "version": "1.0.0", "description": "", "main": "index.js", diff --git a/readme.md b/readme.md index d97397c..1213416 100644 --- a/readme.md +++ b/readme.md @@ -1,3 +1,42 @@ -### work in progress +### Monu - \ No newline at end of file +
Monu is an open source process monitoring menu bar application for Mac OS. You can configure Monu to launch programs, and when Monu starts up it will start them. Additionally, it will monitor the processes and restart them if they crash.
+ +Monu is a portmanteau of 'monitor' and 'menu'. It has two C/C++ dependencies, [Atom Shell](https://github.com/atom/atom-shell) (which includes iojs) and the [mon](https://github.com/tj/mon) process monitor.
+ +To download the latest version visit the [releases page](https://github.com/maxogden/monu/releases)
+ + + +##### How to use Monu +To configure Monu, click 'Open Config Folder' and open 'config.json' in a text editor. When you save and return to Monu your new configuration will be automatically loaded.
+Be sure your JSON syntax is valid when editing the configuration. Here are supported options. These should be added as top level key/value pairs to 'config.json':
+In the 'config.json' file add processes to the 'processes' key. The key must be a name (lowercase letters and hypens) and the value must be the launch command. For example:
+ +```json +{ + "logs": "./logs", + "pids": "./pids", + "processes": { + "web-1": "http-server . -p 8081", + "web-2": "http-server . -p 8082", + "web-3": "http-server . -p 8083" + } +} +``` + +##### Launch on Startup +
When you open Monu.app, it will start all configured processes.
+If you would like Monu.app to start when your Mac starts up, got to System Preferences > Users and Groups and add Monu.app to Login Items for your User.
diff --git a/screenshot.png b/screenshot.png index e3053c9..ec60018 100644 Binary files a/screenshot.png and b/screenshot.png differ