File: spawnee

package info (click to toggle)
ruby-foreman 0.90.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 584 kB
  • sloc: ruby: 2,020; sh: 88; makefile: 8
file content (14 lines) | stat: -rwxr-xr-x 142 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

NAME="$1"

sigterm() {
  echo "$NAME: got sigterm"
}

#trap sigterm SIGTERM

while true; do
  echo "$NAME: ping $$"
  sleep 1
done