mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
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:
parent
948e3de457
commit
d0154ca5c3
4 changed files with 3 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@ ssh:
|
|||
mail:
|
||||
sync_tool: isync
|
||||
sync_time: 10min
|
||||
sync_boot_delay: 2min
|
||||
sync_on: trusted
|
||||
|
||||
network:
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
[Unit]
|
||||
Description=Mailbox synchronization service for user %I
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
Description=Mailbox synchronization timer
|
||||
|
||||
[Timer]
|
||||
OnBootSec={{ mail.sync_boot_delay }}
|
||||
OnUnitActiveSec={{ mail.sync_time }}
|
||||
Unit=mailsync@%i.service
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue