fbecart / zinoma

Žinoma - Make your build flow incremental
MIT License
27 stars 2 forks source link

Daemons as services #52

Open fbecart opened 4 years ago

fbecart commented 4 years ago

Žinoma makes it possible to define services and use them as dependencies of other targets. At the moment, a service is specified as a script to run. That script will be killed as Žinoma exits. In watch mode, Žinoma restarts services by killing and starting them again.

Žinoma could also accept services accessible as daemons.

These services can usually be operated by a set of commands (start, stop, and sometimes restart). For instance:

targets:
  mongodb:
    service:
      start: sudo systemctl start mongod
      stop: sudo systemctl stop mongod
      restart: sudo systemctl restart mongod
fbecart commented 4 years ago

See also https://github.com/fbecart/zinoma/issues/48