Skip to content

Improvement to systemd unitΒ #776

Closed
Closed
@guyest

Description

@guyest
  • Your vdirsyncer version
    0.16.7
  • If applicable, which server software (and which version) you're using
    n/a
  • Your Python version
    3.7
  • Your operating system
    arch linux
  • Your config file
    n/a
  • Use vdirsyncer -vdebug for debug output. The output is sensitive, but
    please 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 or fdm.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions