procd: service: Support writing pidfiles