]> git.ipfire.org Git - ipfire-2.x.git/commit
misc-progs: addonctrl: Add support for 'Services' metadata
authorRobin Roevens <robin.roevens@disroot.org>
Tue, 11 Oct 2022 22:01:53 +0000 (00:01 +0200)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 29 Oct 2022 08:56:48 +0000 (08:56 +0000)
commit24168c8898eb6a9bcc1a0f6103f0c87eb092e7ef
tree157f9bd400204d67695b7258294d403ef1d23ccf
parente728fba16f59f09374e5817de6efa0fcb4d29537
misc-progs: addonctrl: Add support for 'Services' metadata

* Addonctrl will now check in addon metadata for the exact initscript
  names (Services). If more than one initscript is defined for an addon,
  the requested action will be performed on all listed initscripts.
* Added posibility to perform action on a specific initscript of an
  addon instead of on all initscripts of the addon.
* New action 'list-services' to display a list of services related to
  an addon.
* New action 'boot-status' to display wether service(s) are enabled
  to start on boot or not.
* More error checking and cleaner error reporting to user
* General cleanup and code restructuring to avoid code duplication
* Updated and made usage instructions more verbose.

Fixes: Bug#12935
Signed-off-by: Robin Roevens <robin.roevens@disroot.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
src/misc-progs/addonctrl.c