feat: Add --daemonize and --loop-delay options
This feature add a --daemonize
option (available as PSC_DAEMONIZE in config.h.meson
, default to false
) that accepts a boolean.
The --loop-delay
option (available as PSC_LOOP_DELAY in config.h.meson
, default to 1
) allow user to control delay between two iterations.
When PSC_DAEMONIZE
is set to true
, pscircle will run in background and image will be generated every PSC_LOOP_DELAY
seconds.
When PSC_DAEMONIZE
is set to false
(default), behavior is unchanged and one single image is generated.
A new service shell script examples/rc.pscircle.sh
is available as a base script for non systemd based Linux distribution and BSD systems with Linux compatibility layer (i.e FreeBSD, not tested yet).