diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-11-18 15:48:37 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-11-18 18:04:16 +0100 |
commit | 33cb0bbb4b18ae1c1a5762b9f9f3f46c7008d7fd (patch) | |
tree | ea44a3d88c09cc0cacbe0e479f899d8b2620d278 /nixos/modules/system/boot/systemd-unit-options.nix | |
parent | 5620e69b5dfce29f1759ec653d0f26745239f2af (diff) | |
download | nixpkgs-33cb0bbb4b18ae1c1a5762b9f9f3f46c7008d7fd.tar nixpkgs-33cb0bbb4b18ae1c1a5762b9f9f3f46c7008d7fd.tar.gz nixpkgs-33cb0bbb4b18ae1c1a5762b9f9f3f46c7008d7fd.tar.bz2 nixpkgs-33cb0bbb4b18ae1c1a5762b9f9f3f46c7008d7fd.tar.lz nixpkgs-33cb0bbb4b18ae1c1a5762b9f9f3f46c7008d7fd.tar.xz nixpkgs-33cb0bbb4b18ae1c1a5762b9f9f3f46c7008d7fd.tar.zst nixpkgs-33cb0bbb4b18ae1c1a5762b9f9f3f46c7008d7fd.zip |
Use types.lines for script/preStart/postStart/postStop
Diffstat (limited to 'nixos/modules/system/boot/systemd-unit-options.nix')
-rw-r--r-- | nixos/modules/system/boot/systemd-unit-options.nix | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/nixos/modules/system/boot/systemd-unit-options.nix b/nixos/modules/system/boot/systemd-unit-options.nix index cb116e9e92a..d30a80a6f06 100644 --- a/nixos/modules/system/boot/systemd-unit-options.nix +++ b/nixos/modules/system/boot/systemd-unit-options.nix @@ -47,7 +47,7 @@ in rec { requires = mkOption { default = []; - type = types.listOf types.string; + type = types.listOf types.str; description = '' Start the specified units when this unit is started, and stop this unit when the specified units are stopped or fail. @@ -56,7 +56,7 @@ in rec { wants = mkOption { default = []; - type = types.listOf types.string; + type = types.listOf types.str; description = '' Start the specified units when this unit is started. ''; @@ -64,7 +64,7 @@ in rec { after = mkOption { default = []; - type = types.listOf types.string; + type = types.listOf types.str; description = '' If the specified units are started at the same time as this unit, delay this unit until they have started. @@ -73,7 +73,7 @@ in rec { before = mkOption { default = []; - type = types.listOf types.string; + type = types.listOf types.str; description = '' If the specified units are started at the same time as this unit, delay them until this unit has started. @@ -82,7 +82,7 @@ in rec { bindsTo = mkOption { default = []; - type = types.listOf types.string; + type = types.listOf types.str; description = '' Like ‘requires’, but in addition, if the specified units unexpectedly disappear, this unit will be stopped as well. @@ -91,7 +91,7 @@ in rec { partOf = mkOption { default = []; - type = types.listOf types.string; + type = types.listOf types.str; description = '' If the specified units are stopped or restarted, then this unit is stopped or restarted as well. @@ -100,7 +100,7 @@ in rec { conflicts = mkOption { default = []; - type = types.listOf types.string; + type = types.listOf types.str; description = '' If the specified units are started, then this unit is stopped and vice versa. @@ -109,13 +109,13 @@ in rec { requiredBy = mkOption { default = []; - type = types.listOf types.string; + type = types.listOf types.str; description = "Units that require (i.e. depend on and need to go down with) this unit."; }; wantedBy = mkOption { default = []; - type = types.listOf types.string; + type = types.listOf types.str; description = "Units that want (i.e. depend on) this unit."; }; @@ -179,7 +179,7 @@ in rec { }; script = mkOption { - type = types.str; + type = types.lines; default = ""; description = "Shell commands executed as the service's main process."; }; @@ -191,7 +191,7 @@ in rec { }; preStart = mkOption { - type = types.string; + type = types.lines; default = ""; description = '' Shell commands executed before the service's main process @@ -200,7 +200,7 @@ in rec { }; postStart = mkOption { - type = types.string; + type = types.lines; default = ""; description = '' Shell commands executed after the service's main process @@ -209,7 +209,7 @@ in rec { }; postStop = mkOption { - type = types.string; + type = types.lines; default = ""; description = '' Shell commands executed after the service's main process @@ -262,7 +262,7 @@ in rec { listenStreams = mkOption { default = []; - type = types.listOf types.string; + type = types.listOf types.str; example = [ "0.0.0.0:993" "/run/my-socket" ]; description = '' For each item in this list, a <literal>ListenStream</literal> |