-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
daemon: add option to list currently applied patches, and wanting service restart from cmdline #198
Comments
Note: both things are possible through DBus calls, but those are pain to script and parse with plain unix tools. |
I suggest to solely use lower case options, here Edit:
That should now be (with the new terminology): It also might make sense to add long-opts for all command line switches:
What is so hard to parse, i.e., can you provide an example? |
After having dabbled in this for a bit it turns out that doing this transforms the patchmanager binary from a dbus daemon with minimal interactive interface into a dbus client-and-server hybrid. Maybe it would be a better design to implement controlling functions into a separate patchmanager-manager tool which is just a client. |
Thanks, but my comment there is more of a general complaint about the verbosity and amount of boilerplate that is necessary to interact with dbus. It's all doable but rather unwieldy using classic Unix CLI. (If it takes a seven-line shell script and twelve binary calls to shove a single boolean value into a shell variable I'd rather go and do something else.) |
Just a high-level perspective / feedback on the D-Bus topic:
|
patchmanager-daemon offers the cmdline switches
-a
,-u
, and--unapply-all
to apply/unapply patches from scripts.Feature Request 1:
-l|--list-applied
Output the list of applied patches in a parseable format, so scripts can save (and possibly restore) that information.
Useful e.g. in a system update situation, for when developing patches.
Feature Request 2:
-C|--check-services-restart
Output whether PM needs a "Services Toggle". This is useful to know before applying/unapplying patches
The text was updated successfully, but these errors were encountered: