Use a pre-existing target for systemd services

Providing mail.target is really confusing and poor UX:

* When a user enables a unit, it's not truly enabled until they ALSO
  enable mail.target. This is very counter-intuitive.
* `mail.target` provides no extra value in itself, nor is it anything
  "standard".
* Any user wanting this specific target can still continue using it just
  dropping in a `mail.target` file.

Signed-off-by: Hugo Osvaldo Barrera <hugo@barrera.io>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Hugo Osvaldo Barrera
2017-06-01 13:14:10 -03:00
committed by Nicolas Sebrecht
parent 87d92badfc
commit e7a3fd55ac
7 changed files with 5 additions and 14 deletions

View File

@ -9,4 +9,4 @@ ExecStart=/usr/bin/offlineimap -o -a %i -u basic
TimeoutStopSec=120
[Install]
WantedBy=mail.target
WantedBy=default.target