[Unit] Description=Mailbox synchronization service Wants=network-online.target gpg-agent.socket After=network.target network-online.target dbus.socket gpg-agent.socket [Service] Type=oneshot # workaround to allow relative executable invocation (i.e. current users' home dir) ExecStart=/bin/bash -c '%h/.local/bin/sync-mail'