Martin "eto" Misuth:
On my presonal box "user level" s6 /services subtrees are in `.config/s6/host`

For comparison: ~/.config/service-bundles/services/ and ~/.config/service-bundles/targets/

Martin "eto" Misuth:
#!/bin/sh
exec mpd --no-daemon /usr/home/eto/.config/mpd/mpd.conf

Tip: In the daemontools world all services have ther own service directory, at minimum; and this directory is the working directory of the service. You can put an mpd.conf that is particular to the service in the service directory itself.

Martin "eto" Misuth:
Getting tmux "supervised" was bit tricky as it double forks the daemon if not running, and is thus is "escaping under init" under normal conditions.

Note: This can be easily handled on FreeBSD and TrueOS. See NOTE_TRACK in EVFILT_PROC for kevent().

Martin "eto" Misuth:
It would be great if tmux project allowed to spawn raw user level daemon by explicit command,

One of the interesting developments over the past couple of decades is how much the world has been influenced to come around to the daemontools way of doing this. I've observed before, elsewhere, the number of daemon programs, especially in the BSD worlds, that have in that time gained -F/--foreground or similar options that tell them not to do a whole bunch of this unnecessary stuff.

It's in a way somewhat saddening to see the new option to emacs that started this thread. It's welcome; but the sad part is that it's a decade and a half behind quite a lot of others. For some systems like emacs the process has been glacially slow. MySQL is another. daemontools users were asking about letting daemontools do the service management and doing away with mysqld_safe in 2002. It took thirteen years for it to happen ... in MariaDB. Oracle, where software goes to die, may or may not have done the same for MySQL. PostgreSQL lags further behind.

* http://jdebp.eu./Softwares/nosh/mariadb-and-mysql.html#Prompt

Reply via email to