l2md: add oneshot option to sync once and exit

By default l2md will loop forever and periodically fetch and
sync. Add a config option that enables l2md to sync once and
exit, so that it could also be invoked for oneshot operation
(e.g. via crontab), instead of running as a daemon service.

Signed-off-by: Anthony Iliopoulos <ailiopoulos@suse.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
4 files changed