-
Notifications
You must be signed in to change notification settings - Fork 164
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
Improvement to systemd unit #776
Comments
Adding Not sure about |
How so? Do you mean as in "type in your password" or similar? |
Well I think what @WhyNotHugo was getting at is what I implicitly suggested was a difficulty: if |
I'm currently doing exactly what you suggested in a systemd unit. As commented in #425, although there is no non-interactive mode currently you can do I haven't found a way to start a program for conflict resolution from systemd. I'd like to do something like |
Wow, this is old. Let me clarify:
This might trigger questions like "collection X not found locally, do you want to create it?". Since it's not running interactively, it'll just fail and exit. Discovery needs to be done manually as long as it requires user intervention.
Sounds very far from being doable. This is running in the background. Where do we show nvim? Is the user running just a VT? Xorg? Wayland? What's their terminal emulator? What if they're watching a movie, do we still want to pop up a windows with vim? I do agree that we want to inform the user of conflict. The question I can't seem to find an answer for is: how? Maybe a separate timer that sends you an email if any user timer failed? If that's the best solution, it's best left as a separate package, and not a vdirsyncer feature. I'm open to other ideas though.
Sadly, user-units can't rely on system-units, so this dependency order cannot be specified. Systemd limitation. Can't do much around it. 🤷♂️ I don't think there's anything actionable here (in other words: I'm out of ideas here). |
#869 should be enough to handle auto-creation of new collections. As for the other points here, there's nothing to be done. |
0.16.7
n/a
3.7
arch linux
n/a
vdirsyncer -vdebug
for debug output. The output is sensitive, butplease attach at least the last few lines before the error (if applicable),
censored as necessary. This is almost always the most useful information.
n/a
No error here. Just wanted to open a ticket to raise the possibility of a couple potential improvements to the systemd unit files that are shipped by default. Of course these can be edited by the user as suggested in the documentation, but sane defaults are always nice.
In the unit section of vdirsyncer.service:
After = network.target network-online.target dbus.socket
That way, there is no problem with trying to reach a remote resource if the machine takes longer than the default of 5min to obtain network connectivity. This is what is done by similar syncing services likes
mbsync
orfdm
.In the service section of vdirsyncer.service:
ExecStartPre = /usr/bin/vdirsyncer discover
That way, when a new dav resource is created it does not have to be added manually. This one is a bit trickier and possibly not a good default. There would need to be a way to pass the prompt from
discover
and allow it to make the new collections.The text was updated successfully, but these errors were encountered: