https://github.com/ideal/bitzer
Running and managing background tasks
https://github.com/ideal/bitzer
Last synced: about 1 year ago
JSON representation
Running and managing background tasks
- Host: GitHub
- URL: https://github.com/ideal/bitzer
- Owner: ideal
- License: gpl-3.0
- Created: 2015-09-01T06:22:08.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-03-25T10:14:59.000Z (over 6 years ago)
- Last Synced: 2025-03-30T13:04:14.236Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 73.2 KB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bitzer
[![Build Status]][Travis CI]
Bitzer is an application that can be used to run and manage a number of processes on UNIX-like operating systems. It's much like [supervisord](http://supervisord.org/) and [supervise](http://cr.yp.to/daemontools/supervise.html).
What Bitzer do is quite simple currently. When Bitzer starts, it starts a number of processes based on your config, and then going to sleep. At sometime when one of the processes exits due to some reason, it will restart the process automatically.
Authors
=======
* Shang Yuanchun
Installation
============
You need cmake 2.6 or higher to build Bitzer from source. Further more, you also need flex (2.5.4 or higher), and bison (2.5 or higher).
```shell
mkdir build && cd build
```
```shell
cmake .. -DCMAKE_INSTALL_PREFIX=/tmp
make && make install
```
In that prefix directory, there is a `bitzer.conf` under `conf` directory, the format is described as below.
Configuration
=============
In `bitzer.conf`, you describe the processes that need to run. Here is an example:
```
task {
name siesta;
path /bin/sleep;
args 10;
dir /tmp;
}
```
`name` and `path` must be provided. `args` is the arguments passed to the process. If `dir` is specified, it will be the process's working directory.
Running
=======
Just run `bitzer` if its path is in PATH, or type in the absolute path of bitzer.
The name
=======
[`Bitzer`](http://shaunthesheep.wikia.com/wiki/Bitzer) is a sheepdog in `Shaun the Sheep`.
[Build Status]: https://travis-ci.org/ideal/bitzer.svg?branch=master
[Travis CI]: https://travis-ci.org/ideal/bitzer