Created attachment 148290 [details]
Return an error if service is not enabled.
Currently the rc service returns success when testing any function and it's not enabled.
# in rc.conf
ntpd_enable=NO # or unset
# in a sample script
if /etc/rc.d/ntpd status >/dev/null 2>&1; then
# ntpd is running but we changed it's config, lets restart it for the new one