mirror of
https://github.com/peterbourgon/runsvinit.git
synced 2026-03-05 22:07:22 +01:00
Break out example and rename
This commit is contained in:
17
example/foo
Executable file
17
example/foo
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
handle() {
|
||||
echo "got signal"
|
||||
exit
|
||||
}
|
||||
|
||||
trap "handle" SIGINT
|
||||
|
||||
for i in `seq 1 5`
|
||||
do
|
||||
echo foo: $i
|
||||
sleep 1
|
||||
done
|
||||
|
||||
echo foo: terminating!
|
||||
|
||||
Reference in New Issue
Block a user