core: fix init script status exit codes on not running daemon and present pid file

- exit 3 when daemon is not running (means no pid file)
- exit 1 when daemon is dead, but pid file there

fixes #4243