https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194347

            Bug ID: 194347
           Summary: Return an error when rc service is not enabled
           Product: Base System
           Version: 10.0-RELEASE
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Many People
          Priority: ---
         Component: conf
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 148290
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=148290&action=edit
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
   /etc/rc.d/ntpd restart
fi

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to