[Bug 194347] New: Return an error when rc service is not enabled
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Oct 14 11:14:22 UTC 2014
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 at FreeBSD.org
Reporter: roy at 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.
More information about the freebsd-bugs
mailing list