remove mailsync boot delay

This isn't needed when we can just specify that the service runs after
network.target.
This commit is contained in:
Pig Monkey 2016-01-14 19:53:12 -08:00
parent 948e3de457
commit d0154ca5c3
4 changed files with 3 additions and 5 deletions

View file

@ -132,9 +132,8 @@ connectivity using NetworkMananger. `mailsync` may be called directly by the
user, ie by configuring a hotkey in Mutt.
A [systemd timer][15] is also included to periodically call `mailsync`. The
timer includes a 2 minute boot delay (to allow time for network connectivity to
be established, configurable through the `mail.sync_boot_delay` variable) and
syncs every 10 minutes (configurable through the `mail.sync_time` variable).
timer is set to sync every 10 minutes (configurable through the
`mail.sync_time` variable).
The timer is not started or enabled by default. Instead, a NetworkManager
dispatcher is installed, which activates the timer whenever a connection is

View file

@ -26,7 +26,6 @@ ssh:
mail:
sync_tool: isync
sync_time: 10min
sync_boot_delay: 2min
sync_on: trusted
network:

View file

@ -1,5 +1,6 @@
[Unit]
Description=Mailbox synchronization service for user %I
After=network.target
[Service]
Type=oneshot

View file

@ -3,7 +3,6 @@
Description=Mailbox synchronization timer
[Timer]
OnBootSec={{ mail.sync_boot_delay }}
OnUnitActiveSec={{ mail.sync_time }}
Unit=mailsync@%i.service