mperham/sidekiq — pull request #32 by jc00ke (2012-02-15 19:01:07+00:00)
Title: Adding pidfile option

Cribbed from puma. I tested manually too; worked like a charm.

```sh
∴ ./bin/sidekiq -r ./test/fake_env.rb -p /tmp/sidekiq.pid
I, [2012-02-15T10:55:23.417538 #7122] INFO -- : Booting sidekiq 0.6.0 with Redis at localhost:6379
I, [2012-02-15T10:55:23.495404 #7122] INFO -- : Starting processing, hit Ctrl-C to stop
```

```sh
∴ kill -s INT `cat /tmp/sidekiq.pid`
```

```sh
I, [2012-02-15T10:55:53.290310 #7122] INFO -- : Shutting down, pausing 5 seconds to let workers finish...
I, [2012-02-15T10:55:53.298585 #7122] INFO -- : My tag: ':7122-'
I, [2012-02-15T10:55:53.299552 #7122] INFO -- : Current workers: [...]
```