mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +01:00
mbsync: change service unit type to 'oneshot'
The ExecStartPost command is currently started when the mbsync is invoked succesfully. However, we typically want to run something like 'mu index' or 'notmuch new' after mbsync completes. This changes the unit type to oneshot, so that the ExecStartPost command is run after mbsync finishes succesfully.
This commit is contained in:
parent
52b9363745
commit
05a98b6be0
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ in
|
|||
};
|
||||
|
||||
Service = {
|
||||
Type = "simple";
|
||||
Type = "oneshot";
|
||||
ExecStart = "${cfg.package}/bin/mbsync ${concatStringsSep " " mbsyncOptions}";
|
||||
} // (optionalAttrs (cfg.postExec != null) { ExecStartPost = cfg.postExec; })
|
||||
// (optionalAttrs (cfg.preExec != null) { ExecStartPre = cfg.preExec; });
|
||||
|
|
Loading…
Reference in a new issue