mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
nixos/postfix: move scripts to serviceConfig
This commit is contained in:
parent
ef3102b27e
commit
902dd35d47
1 changed files with 3 additions and 13 deletions
|
@ -410,6 +410,9 @@ in
|
||||||
Type = "forking";
|
Type = "forking";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
PIDFile = "/var/lib/postfix/queue/pid/master.pid";
|
PIDFile = "/var/lib/postfix/queue/pid/master.pid";
|
||||||
|
ExecStart = "${pkgs.postfix}/bin/postfix -c /etc/postfix start";
|
||||||
|
ExecStop = "${pkgs.postfix}/bin/postfix -c /etc/postfix stop";
|
||||||
|
ExecReload = "${pkgs.postfix}/bin/postfix -c /etc/postfix reload";
|
||||||
};
|
};
|
||||||
|
|
||||||
preStart = ''
|
preStart = ''
|
||||||
|
@ -443,19 +446,6 @@ in
|
||||||
${pkgs.coreutils}/bin/chmod a+rwxt /var/spool/mail
|
${pkgs.coreutils}/bin/chmod a+rwxt /var/spool/mail
|
||||||
${pkgs.coreutils}/bin/ln -sf /var/spool/mail /var/
|
${pkgs.coreutils}/bin/ln -sf /var/spool/mail /var/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
script = ''
|
|
||||||
${pkgs.postfix}/sbin/postfix -c /etc/postfix start
|
|
||||||
'';
|
|
||||||
|
|
||||||
reload = ''
|
|
||||||
${pkgs.postfix}/sbin/postfix -c /etc/postfix reload
|
|
||||||
'';
|
|
||||||
|
|
||||||
preStop = ''
|
|
||||||
${pkgs.postfix}/sbin/postfix -c /etc/postfix stop
|
|
||||||
'';
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue