Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jtmoulia/spawndir
Spawn processes from the file system.
https://github.com/jtmoulia/spawndir
Last synced: about 1 month ago
JSON representation
Spawn processes from the file system.
- Host: GitHub
- URL: https://github.com/jtmoulia/spawndir
- Owner: jtmoulia
- License: bsd-3-clause
- Created: 2014-07-03T06:14:04.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-28T22:36:33.000Z (about 10 years ago)
- Last Synced: 2024-10-07T11:13:34.908Z (2 months ago)
- Language: Elixir
- Homepage:
- Size: 182 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Spawns processes from the file system. (Miscellaneous)
- fucking-awesome-elixir - spawndir - Spawns processes from the file system. (Miscellaneous)
- awesome-elixir - spawndir - Spawns processes from the file system. (Miscellaneous)
README
# SpawnDir
Spawns commands from the file system. This exists to provide a simple
mechanism for spawning and managing processes: simply add an
executable, or a symbolic link to one, to a monitored directory. The config
allows arguments to be specified by file or directory.While not as flexible as upstart, monit, et al., SpawnDir's use of the
filesystem provides a simpler UNIX-ish interface.## Usage
To use the escript executable:
./spawndir DIR [ARGS ...]
where `DIR` is the directory to be monitored, and each command
will be started with the supplied `ARGS`To run using mix:
mix run --no-halt
You can configure what is watched via the `:spawndir` application
environment variables::default_opts :: [opt]
:watch :: [cmd | {cmd, [opt]}]
where opt :: string()
cmd :: string()## Future Additions
- Check for executable flag
- Package installation
- Monitor filesystem for commands being added/removedCopyright (c) Thomas Moulia, 2014