utils-systemd: provide enumeration of units
authorJosé Bollo <jose.bollo@iot.bzh>
Thu, 16 Mar 2017 08:27:41 +0000 (09:27 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Fri, 17 Mar 2017 12:01:40 +0000 (13:01 +0100)
commit600a5cde310c62e4c6ed1845cf0234ba04fb6f90
tree1fa88eb122eaa6891ba7c11e101aa510fed738cc
parenta1ae7c362b0b7a65cad813a8def6c8eae72f33b2
utils-systemd: provide enumeration of units

This enumeration is based on the filesystem,
units are listed from the configured directory.
This is necessarily because not all units can be
loaded by systemd but all can be started.

Change-Id: Ic4d1331c8c54f5bbaa747ff8084da2b0c5a65c55
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/utils-systemd.c
src/utils-systemd.h