You&#x27;re setting the service as Type=simple, yet are using a PID file and manually daemonizing at the same time? This is blatantly incorrect behavior, and I&#x27;m surprised systemd even accepts it without loudly warning. Simple daemons are supposed to be daemonized by the supervisor itself, it&#x27;s forking daemons where the PID file hack is necessary to hackily bludgeon them into a supervisor tree. Here, it&#x27;s gratuitous and subject to race conditions.