Skip to content
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

Monitor user units #1

Open
mineo opened this issue Nov 20, 2015 · 2 comments
Open

Monitor user units #1

mineo opened this issue Nov 20, 2015 · 2 comments

Comments

@mineo
Copy link
Owner

mineo commented Nov 20, 2015

No description provided.

@cedricpim
Copy link

@mineo Are you planning on getting back on this? Or do you have any idea if the change would be somewhat simple?

I am not really proficient with Python but if it would be simple, I wouldn't mind taking a stab at it.

@mineo
Copy link
Owner Author

mineo commented Sep 11, 2018

@cedricpim I'm not actively looking into this. A good starting point would be

con = yield client.connect(reactor, "system")
- the "system" argument here needs to be dynamic, for user units we'd want to connect to "session", the bus where the systemd user manager is available. I think it would be easiest to add a new command line argument similar to
parser.add_argument("--notifier", action="append", default=[],
choices=available_notifier_names,
help="A notifier to enable.")
(with choices being ["session", "system"] and pass the value of that along.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants