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
Add --with-idle-exit-timeout configure option #294
Conversation
b86ec5e
to
3e1d524
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why this needs to be a configure option, but I would suggest making it --with-idle-timeout=NNN
instead of enable/disable since that is more consistent with autoconf usage and would allow a packager to configure a different timeout value as needed (vs. requiring a patch, which I suspect is what you are doing now?)
The idea is that server oriented OSes can ship preconfigured CUPS which should suit better for server use cases to prevent consuming users time and additional reports, which would end up in recommendation to set the directive.
I tried to bypass value validation and reports of type 'I've set the value too low/too high and now I have problems' with choosing only unlimited option. Or we can trust in our and systemd validation code for values. WDYT? |
@zdohnal I think we can trust the input validation of cupsd and systemd to Do The Right Thing, and we can also trust that the people packaging CUPS and using this configure option have a modicum of intelligence if they decide to override the defaults. Also, |
6cf1aeb
to
6cec44f
Compare
The option enables setting IdleExitTimeout to a desired value - f.e. setting to zero will disable automatic shutdown, which is useful on servers, where cupsd is expected to run even if there is no web interface, no jobs and CUPS doesn't share queues.
@michaelrsweet ok, updated - thx for the tips, I didn't think about 'no' option at all... |
6cec44f
to
d3bf52f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Updated message:
The option enables setting IdleExitTimeout to a desired value - f.e.
setting to zero will disable automatic shutdown, which is useful on servers,
where cupsd is expected to run even if there is no web interface, no jobs
and CUPS doesn't share queues.
Original message:
On servers, CUPS is expected to be running permanently, even if there
are no jobs and no web interface, and CUPS doesn't share queues.
The option will set IdleExitTimeout to 0 if used - if not used or used
with 'disable', it sets the directive to default 60s.