summaryrefslogtreecommitdiff
path: root/etc/rc.d
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2012-09-13 05:55:22 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2012-09-13 05:55:22 +0000
commitd009e040048df468f2bcb51c26e09433e312bf92 (patch)
treeb3141272d319bf082c28e8a86c6089e97fb9f93e /etc/rc.d
parent2d96a877cfb42f1748a18400a798af4fc9d95c5b (diff)
Simplify the way we call the rc.d(8) script in "restart".
ok sthen@
Diffstat (limited to 'etc/rc.d')
-rw-r--r--etc/rc.d/rc.subr6
1 files 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 <ajacoutot@openbsd.org>
# Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -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