Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Oct 2014 11:14:22 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 194347] New: Return an error when rc service is not enabled
Message-ID:  <bug-194347-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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: freebsd-bugs@FreeBSD.org
          Reporter: roy@marples.name

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-194347-8>