changes sleep in docs to example that uses a trap INT

This commit is contained in:
dougbtv 2019-06-07 15:25:50 -04:00 committed by Tomofumi Hayashi
parent aaaad9d481
commit 1f8b44c575
2 changed files with 4 additions and 4 deletions

View File

@ -159,7 +159,7 @@ metadata:
spec:
containers:
- name: samplepod
command: ["/bin/bash", "-c", "sleep 2000000000000"]
command: ["/bin/bash", "-c", "trap : TERM INT; sleep infinity & wait"]
image: dougbtv/centos-network
EOF
```
@ -191,7 +191,7 @@ metadata:
spec:
containers:
- name: samplepod
command: ["/bin/bash", "-c", "sleep 2000000000000"]
command: ["/bin/bash", "-c", "trap : TERM INT; sleep infinity & wait"]
image: dougbtv/centos-network
EOF
```

View File

@ -8,7 +8,7 @@ metadata:
spec:
containers:
- name: samplepod
command: ["/bin/bash", "-c", "sleep 2000000000000"]
command: ["/bin/bash", "-c", "trap : TERM INT; sleep infinity & wait"]
image: dougbtv/centos-network
ports:
- containerPort: 80