Flag to run in foreground instead of forking
Opened this issue · 0 comments
haasn commented
Autoplay's daemon is pretty unreliable, forks incorrectly, likes to crash or hang up unexpectedly, sometimes doesn't start successfully and in general is just a nightmare to deal with.
It would be great if you could add a flag to just run the daemon in the foreground (logging to STDOUT), so I can use something that was designed to fork correctly (such as systemd
or runit
) to daemonize autoplay.
In general, it would probably also be a good idea to separate the server component of autoplay from the client component that interacts with it so they live in entirely separate files.