mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
Support postStart scripts in service units
This commit is contained in:
parent
891be375b5
commit
13d747c11a
2 changed files with 16 additions and 0 deletions
|
@ -122,6 +122,15 @@ with pkgs.lib;
|
|||
'';
|
||||
};
|
||||
|
||||
postStart = mkOption {
|
||||
type = types.string;
|
||||
default = "";
|
||||
description = ''
|
||||
Shell commands executed after the service's main process
|
||||
is started.
|
||||
'';
|
||||
};
|
||||
|
||||
restartIfChanged = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue