diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-10-10 17:55:13 -0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-10-10 17:55:13 -0400 |
commit | 62b707de07c4aae4a415bc186bda943c70edd3ac (patch) | |
tree | 1772f4389f9a6d755aedb1999b956e1ffa094d7e /modules/system/boot/systemd-unit-options.nix | |
parent | e9b221c2ff08b7b941298c4a17c090442f72c5ed (diff) | |
download | nixpkgs-62b707de07c4aae4a415bc186bda943c70edd3ac.tar nixpkgs-62b707de07c4aae4a415bc186bda943c70edd3ac.tar.gz nixpkgs-62b707de07c4aae4a415bc186bda943c70edd3ac.tar.bz2 nixpkgs-62b707de07c4aae4a415bc186bda943c70edd3ac.tar.lz nixpkgs-62b707de07c4aae4a415bc186bda943c70edd3ac.tar.xz nixpkgs-62b707de07c4aae4a415bc186bda943c70edd3ac.tar.zst nixpkgs-62b707de07c4aae4a415bc186bda943c70edd3ac.zip |
Add support for postStop scripts
Diffstat (limited to 'modules/system/boot/systemd-unit-options.nix')
-rw-r--r-- | modules/system/boot/systemd-unit-options.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/system/boot/systemd-unit-options.nix b/modules/system/boot/systemd-unit-options.nix index 46f2a705df8..2efea2fb9e1 100644 --- a/modules/system/boot/systemd-unit-options.nix +++ b/modules/system/boot/systemd-unit-options.nix @@ -145,6 +145,15 @@ rec { ''; }; + postStop = mkOption { + type = types.string; + default = ""; + description = '' + Shell commands executed after the service's main process + has exited. + ''; + }; + restartIfChanged = mkOption { type = types.bool; default = true; |