Browse Source

Simplify the way we call the rc.d(8) script in "restart".

ok sthen@
OPENBSD_5_3
ajacoutot 11 years ago
parent
commit
307aa3046d
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/etc/rc.d/rc.subr

+ 3
- 3
src/etc/rc.d/rc.subr View File

@ -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


Loading…
Cancel
Save