mirror of
https://github.com/peterbourgon/runsvinit.git
synced 2024-12-16 14:57:04 +00:00
16 lines
117 B
Bash
Executable File
16 lines
117 B
Bash
Executable File
#!/bin/sh
|
|
|
|
handle() {
|
|
echo "got signal"
|
|
exit
|
|
}
|
|
|
|
trap handle SIGINT
|
|
|
|
while true
|
|
do
|
|
echo bar: `date`
|
|
sleep 1
|
|
done
|
|
|