aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils-systemd.h
AgeCommit message (Collapse)AuthorFilesLines
2019-02-07Update date in copyrightssandbox/scottrif29/scottdocsJosé Bollo1-1/+1
Change-Id: Ie2ff321f78c59913373e2ffb2820297fd423d6f4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-02-28Update date of copyright noticesJosé Bollo1-1/+1
Change-Id: Ia4ef2a6e3c07616ccd756933a82f0806844c4faf Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24utils-systemd: Offer way to set systemd's busesJosé Bollo1-0/+4
Change-Id: I8035c10e8f769b7912046b432d43f97297c039b2 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-06-23Fix socket (de)activation at (de)installJosé Bollo1-0/+2
When installing or deinstalling, it is needed to issue a "systemctl (--user) restart sockets.target" This patch implement it on user side. To be improved. Change-Id: I152eb6a1cf5df50b1fe3143837d6d42ee6619349 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-17utils-systemd: implement start/stop of unitsx-first-with-systemdJosé Bollo1-0/+20
This implementation is very basic and must be improved. Change-Id: Id1540e646c83285c61849092bbd8fb645c0954ed Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-17utils-systemd: provide enumeration of unitsJosé Bollo1-0/+4
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>
2017-03-17Emits reload to systemd when neededJosé Bollo1-0/+1
The current implementation enforce the reload when a 'wants' target is created or deleted. This should work well for system units. However, for system units, this behaviour isn't enought when more that a user is active because only the user that installs the application will be updated. For this reason, a paralelle mechanism has to be defined. Also note that systemd is henceforth required for tools because wgtpkg-installer needs it now. Change-Id: I4fc03a44dbc58c2374ea21dbf6b436f646d04e00 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-17utils-systemd: introduction of systemd interfaceJosé Bollo1-0/+24
Isolate the interface to systemd. Change-Id: I03ea654da9fab2df0e6eec980b0e5623487d1b73 Signed-off-by: José Bollo <jose.bollo@iot.bzh>