From d009e040048df468f2bcb51c26e09433e312bf92 Mon Sep 17 00:00:00 2001 From: Antoine Jacoutot Date: Thu, 13 Sep 2012 05:55:22 +0000 Subject: Simplify the way we call the rc.d(8) script in "restart". ok sthen@ --- etc/rc.d/rc.subr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/rc.d/rc.subr b/etc/rc.d/rc.subr index 85f34d83420..49b89b3e22e 100644 --- a/etc/rc.d/rc.subr +++ b/etc/rc.d/rc.subr @@ -1,4 +1,4 @@ -# $OpenBSD: rc.subr,v 1.64 2012/09/01 07:08:37 ajacoutot Exp $ +# $OpenBSD: rc.subr,v 1.65 2012/09/13 05:55:21 ajacoutot Exp $ # # Copyright (c) 2010, 2011 Antoine Jacoutot # Copyright (c) 2010, 2011 Ingo Schwarze @@ -158,8 +158,8 @@ rc_cmd() { rc_exit ok ;; restart) - /etc/rc.d/${_name} ${_RC_DEBUG} ${_RC_FORCE} stop && - /etc/rc.d/${_name} ${_RC_DEBUG} ${_RC_FORCE} start + $0 ${_RC_DEBUG} ${_RC_FORCE} stop && + $0 ${_RC_DEBUG} ${_RC_FORCE} start ;; *) rc_usage -- cgit v1.2.3