nixos/dovecot: use systemd's RuntimeDirectory instead of creating it by ourselves
This commit is contained in:
parent
9c7b067c6a
commit
122929cda7
|
@ -203,8 +203,6 @@ in
|
|||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
preStart = ''
|
||||
mkdir -p "${baseDir}/login"
|
||||
chown -R ${cfg.user}:${cfg.group} "${baseDir}"
|
||||
rm -f "${stateDir}/modules"
|
||||
ln -s "${modulesDir}" "${stateDir}/modules"
|
||||
'';
|
||||
|
@ -215,6 +213,7 @@ in
|
|||
Restart = "on-failure";
|
||||
RestartSec = "1s";
|
||||
StartLimitInterval = "1min";
|
||||
RuntimeDirectory = [ "dovecot2" ];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue