• rebx's avatar
    Create PID file even if in foreground · e6d499a4
    rebx authored
    Previously, Redis only wrote the pid file if
    it was daemonizing, but many times it's useful to have
    the pid written out even if you're in the foreground.
    
    Some background for this is:
    I usually run redis via daemontools. That entails running
    redis-server on the foreground. Given that, I'd also want
    redis-server to create a pidfile so other processes (e.g. nagios)
    can run checks for that.
    
    Closes #463
    e6d499a4
redis.c 147 KB