-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
services: No ability to edit timers #9467
Comments
The details page also doesn't show timer specific things like when it will trigger next. |
Ability to delete timers also appreciated! |
Altogether, a complete editing experience should include:
|
I wonder if it's possible to add a custom field to the We probably don't want to edit system timers, right? Or if we "edit" system ones, we probably would want to create a custom timer based on the settings in the system-installed one and disable the original when enabling our custom one. |
Yes, that's possible with the common |
Oh, that's really neat, but people might already have custom timers. My WiP PR for deleting timers checks for timers in /etc/systemd/system so we don't edit system timers. |
@jelly: Ah cool! Then we could use that instead. Even better! |
Another issue is that timers currently overwrite existing timers, so ideally it would not allow that too. |
Yeah, we should definitely check for that. We could use a force overwrite pattern of sorts (perhaps like the account's force weak password in the account password modal) where the main button is disabled (to prevent accidental misclicks) and a secondary button shows up to force overwrite it. I suppose we'd want to have an error message of sorts show up, like an inline alert at the top of the modal showing that the timer's filename already exists. |
@garrett, @jelly, @martinpitt Another feature that would be a great add (maybe there is already a way im not seeing) is the ability for the timer to repeat at a certain frequency. more specifically every x seconds, minutes, hours from creation. something like thoughts? should I finish pounding this out and submit a PR or is there other larger changes in progress? |
I wonder how is this different from adding
So minutely could generate:
Afaik there are currently no changes being made to how the timers work. |
@jelly This would work for my use case. Main difference between what I suggested and yours is mine wouldn't use OnCalendar but rather OnUnitActiveSec. but maybe that should be a different trigger option? |
|
What would happen after a reboot if What's the expected use? Do this every X time units from now... on current boot only? or for every X time units "forever", starting from now? |
It's explained in |
I don't see any answers to the questions I asked on the page. I want to know what people expect (such as @dphaas2004) and if it is still active after a boot. And if it is active after a boot, is it still relative to the time it was set or relative to boot time. The page doesn't answer these questions. |
@garrett my expected behavior is that it happens at some regular frequency. Most typically for me its every minute or every 5 minutes. The specific start time of that service is irrelevant to my use case. It is expected to be persistent and continue after a reboot. In my case I need it reoccurring. isn't Side notes:
I was thinking just having a custom option for on calendar and then using systemd-analyze calendar to validate the entry prior to savings? Which brings me to another point. Should the |
Editing should be an item in the kebab menu (probably with a separator, so it's Restart, Stop, Separator, Edit, and the rest) and it should bring up a modal similar to the create, but titled "Editing timer: timername" and have the values prefilled with the existing settings. |
And only for systemd timers created in /etc/systemd/system/ I assume. |
This came up in the usability testing. There is apparently no way to edit a timer. Either if you did something wrong during the creation of it, or if you want to change the time it runs. Also we might want to enable users to delete them.
The text was updated successfully, but these errors were encountered: