Monitor Dart scripts, and run them on startup. This is very early in the development stages, so expect some changes.
dartmonit as a daemon is currently only supported on Linux and Windows.
For Unix/Linux variants:
pub global activate dartmonit
On Windows, you need to clone this repository, and add
PATH. The reason for this is that having
dartmonit saved on your
filesystem allows the
install command to install the included Windows service,
written in C#, and compiled to an
git clone https://github.com/thosakwe/dartmonit.git SET PATH="<dartmonit-root>\bin";%PATH%
See here for a look at how to set environment variables system-wide.
To add a script to
sudo dartmonit env "PATH=$PATH" install
dartmonit is essentially an HTTP server, which runs as a daemon and exposes a simple API.
Most of the CLI commands query a running API.
To manually start the server (not as a daemon):
dartmonit start dartmonit start --port 2245
2245 is the default port.
Now, you can run it as a service:
sudo service dartmonit start sudo /etc/init.d/dartmonit start
You may have better luck with the
/etc/init.d variant, rather than
Usage: dartmonit <command> [arguments] Global options: -h, --help Print this usage information. Available commands: help Display help information for dartmonit. install Configures dartmonit to run at startup. kill Halts the execution of a given command. remove Removes a command from the list of processes to execute. run Spawns a child process at the given absolute path. start Starts the dartmonit HTTP server. status Fetches the status of a given process. stop Instructs an active dartmonit server to shut down. uninstall Uninstalls the dartmonit daemon. Run "dartmonit help <command>" for more information about a command.
TODO: API documentation
Add this to your package's pubspec.yaml file:
dependencies: dartmonit: "^0.0.6"
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
Check the docs for your editor to learn more.
|0.0.6||Jul 22, 2017|
|0.0.5||Jul 22, 2017|
|0.0.4||Jul 22, 2017|
|0.0.3||Jul 22, 2017|
|0.0.2||Jul 21, 2017|
|0.0.1||Jul 21, 2017|
|0.0.0||Jul 21, 2017|
We analyzed this package, and provided a score, details, and suggestions below.
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Detected platforms: Flutter, web, other
No platform restriction found in libraries.
Strong-mode analysis of
lib/src/commands/start.dartfailed with the following error:
line: 86 col: 25
The argument type 'List' can't be assigned to the parameter type 'Iterable<Future>'.
Strong-mode analysis of
lib/src/server.dartfailed with the following error:
line: 54 col: 7
The getter 'justBeforeStop' isn't defined for the class 'Angel'.
Changelog entries help clients to follow the progress in your code.
Fix issues reported by
dartanalyzerreported 2 error(s) and 0 warning(s).
The description is too short.
Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.
Package is pre-v1 release.
While there is nothing inherently wrong with versions of
0.*.*, it usually means that the author is still experimenting with the general direction API.
Maintain an example.
None of the files in your
example/directory matches a known example patterns. Common file name patterns include:
example.dartor you could also use