summaryrefslogtreecommitdiff
path: root/usr.sbin/rcctl/rcctl.sh
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2016-01-24 08:51:51 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2016-01-24 08:51:51 +0000
commit3c1397cfd8659ac429171371e7ad519982cd466b (patch)
treebc819f22c60fe2727a3f9171ff8c1d7a7ebaeb7a /usr.sbin/rcctl/rcctl.sh
parentae470df9ca5213e7c7f343d540b370e41abde1ef (diff)
Check all daemons in "faulty", not just the base ones.
reported by landry@
Diffstat (limited to 'usr.sbin/rcctl/rcctl.sh')
-rw-r--r--usr.sbin/rcctl/rcctl.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rcctl/rcctl.sh b/usr.sbin/rcctl/rcctl.sh
index 696cdb91753..08fceaeda65 100644
--- a/usr.sbin/rcctl/rcctl.sh
+++ b/usr.sbin/rcctl/rcctl.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $OpenBSD: rcctl.sh,v 1.87 2015/12/06 14:24:48 mpi Exp $
+# $OpenBSD: rcctl.sh,v 1.88 2016/01/24 08:51:50 ajacoutot Exp $
#
# Copyright (c) 2014, 2015 Antoine Jacoutot <ajacoutot@openbsd.org>
# Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -184,7 +184,7 @@ svc_ls()
;;
faulty)
for _svc in $(svc_ls on); do
- svc_is_base ${_svc} && \
+ ! svc_is_special ${_svc} && \
! /etc/rc.d/${_svc} check >/dev/null && \
echo ${_svc} && _ret=1
done