symkat/Daemon-Control — Issue #5: Better handling of pid file
Author: doherty
Created: 2012-03-07 03:19:21+00:00
State: open

If the pid file doesn't exist, touch it. If it is empty, don't try to kill `""`:

```
root@deschamps:~# sudo service php-fcgi restart
Failed to read /var/run/php-fcgi.pid: No such file or directory at /root/perl5/lib/perl5/Daemon/Control.pm line 140.
root@deschamps:~# touch /var/run/php-fcgi.pid
root@deschamps:~# sudo service php-fcgi restart
Argument "" isn't numeric in kill at /root/perl5/lib/perl5/Daemon/Control.pm line 153.
Argument "" isn't numeric in kill at /root/perl5/lib/perl5/Daemon/Control.pm line 165.
php-fcgi [Not Running]
```