The 'puppet' service checking for non-Windows looks for PID of a running service but this won't account for things like systemd timers that use a service to periodically run Puppet which is one way the Foreman Puppet module for Puppet manages the periodic execution of Puppet agent.