mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
added example for extraJobs
svn path=/nixos/trunk/; revision=12572
This commit is contained in:
parent
2eb6597bd3
commit
44134d90cb
1 changed files with 10 additions and 0 deletions
|
@ -623,6 +623,16 @@ in
|
||||||
|
|
||||||
extraJobs = mkOption {
|
extraJobs = mkOption {
|
||||||
default = [];
|
default = [];
|
||||||
|
example = [
|
||||||
|
{ name = "test-job";
|
||||||
|
job = ''
|
||||||
|
description "nc"
|
||||||
|
start on started network-interfaces
|
||||||
|
respawn
|
||||||
|
env PATH=/var/run/current-system/sw/bin
|
||||||
|
exec sh -c "echo "hello world" | ${pkgs.netcat}/bin/nc -l -p 9000
|
||||||
|
'';
|
||||||
|
} ];
|
||||||
description = "
|
description = "
|
||||||
Additional Upstart jobs.
|
Additional Upstart jobs.
|
||||||
";
|
";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue