yankeguo / minit

The missing init daemon for container
MIT License
3 stars 1 forks source link

Thanks ! (and a few enhancements ideas) #9

Closed dani closed 3 months ago

dani commented 8 months ago

Hi.

First of all, many thanks for this tool. I've been looking for a flexible init / task manager for my containers, and it took me a while before I found your minit project, which is almost exactly what I was looking for.

I only have a few ideas which would make it the perfect tool for me

MINIT_MAIN=my_command
MINIT_MAIN_KIND=daemon
MINIT_MAIN_NAME=my-daemon

It'd be great to be able to define several units, like

MINIT_MAIN=lemonldap-ng
MINIT_MAIN_KIND=daemon
MINIT_MAIN_NAME="Lemonldap::NG uwsgi server"
MINIT_NGINX="nginx -c /etc/nginx/nginx.conf"
MINIT_NGINX_KIND=daemon
MINIT_CACHE=purgeCentralCache.sh
MINIT_CACHE_KIND=cron
MINIT_CACHE_CRON="* * * * *"
yankeguo commented 8 months ago

I will implement the enhancements you suggested in the next release.

I think I will use MINIT_XXX_COMMAND instead of MINIT_XXX as command of an unit (and keeping MINIT_MAIN backward compatible)

yankeguo commented 8 months ago

And I'd love to see my projects useful to others.