1
0
mirror da https://github.com/peterbourgon/runsvinit.git synced 2026-04-02 23:37:22 +02:00
Files
runsvinit/example/foo
2015-09-25 14:42:04 +02:00

18 righe
147 B
Bash
Executable File

#!/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!