If you will always start/restart snmpd, is there enough value in testing for 
it?  Why not just issue the service restart command regardless.  That will 
restart it if it's running and start it if it is not, no?

As for setting the service to enabled at boot, I would think for that you'd 
want to first somehow test to see if the service was enabled or not, which 
would be entirely independent from whether it is running.  There may already be 
a standard library method for promising a service to be enabled though.

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to