Skip to content

Instantly share code, notes, and snippets.

@hrehfeld
Last active February 8, 2017 15:44
Show Gist options
  • Save hrehfeld/328ccc3a0b40b81a425934f197e7c0da to your computer and use it in GitHub Desktop.
Save hrehfeld/328ccc3a0b40b81a425934f197e7c0da to your computer and use it in GitHub Desktop.
$ systemctl --user daemon-reload
hrehfeld@desktop-dev ~/.config/systemd/user
$ cat mu.service.d/override.conf
[Unit]
After=offlineimap@personal.service
[Install]
RequiredBy=offlineimap@personal.service
hrehfeld@desktop-dev ~/.config/systemd/user
$ systemctl --user list-dependencies offlineimap@personal.service
offlineimap@personal.service
● ├─offlineimap.slice
● └─basic.target
● ├─paths.target
● ├─sockets.target
● │ └─dbus.socket
● └─timers.target
hrehfeld@desktop-dev ~/.config/systemd/user
$ cat mu.service
[Unit]
Description=Indexing maildir $MAILDIR with mu
[Service]
Type=simple
ExecStart=/usr/bin/mu index -m %h/mail
[Install]
WantedBy=mail.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment