On 2019/05/30 16:56, Edd Barrett wrote:
> Hi all,
> 
> Here's a port of Dinit: a process supervisor.
> 
> I've been using this to run things that I want to run in the background
> as me:
> 
> ---8<---
> $ dinitctl list
> [{+}     ] boot
> [{+}     ] mail-loop (pid: 10728)
> [{+}     ] syncthing (pid: 6734)
> [{+}     ] mpd (pid: 82135)
> $ dinitctl stop mpd
> Service stopped.
> $ dinitctl list    
> [{+}     ] boot
> [{+}     ] mail-loop (pid: 10728)
> [{+}     ] syncthing (pid: 6734)
> [     {-}] mpd
> $ kill 6734  # Pretend syncthing crashed.
> $ dinitctl list
> [{+}     ] boot
> [{+}     ] mail-loop (pid: 10728)
> [{+}     ] syncthing (pid: 96866)
> [     {-}] mpd
> --->8---
> 
> I've supplied a rc script in case anyone wishes to manage system-wide
> services using it. Note that the system-wide instance runs as root so
> that it can start services which need root permissions for whatever
> reason. I've added a note to that effect in the README.
> 
> Comments? OK?
> 
> -- 
> Best Regards
> Edd Barrett
> 
> http://www.theunixzoo.co.uk



There's a proper release tarball on the github releases page, please use
that instead of the autogenerated one

https://github.com/davmac314/dinit/releases/download/v0.5.1/dinit-0.5.1.tar.xz

Reply via email to