1
0
mirror of https://github.com/peterbourgon/runsvinit.git synced 2026-03-19 22:27:23 +01:00

First draft

This commit is contained in:
Peter Bourgon
2015-09-25 12:30:24 +02:00
parent 33c958bc9d
commit 4e6968fe8f
8 changed files with 247 additions and 0 deletions

17
foo Executable file
View 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!