From owner-freebsd-questions@freebsd.org Sat Aug 29 07:56:38 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 297729C5238 for ; Sat, 29 Aug 2015 07:56:38 +0000 (UTC) (envelope-from zhup@tutamail.com) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx1.freebsd.org (Postfix) with ESMTP id 158AEF71 for ; Sat, 29 Aug 2015 07:56:36 +0000 (UTC) (envelope-from zhup@tutamail.com) Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id 2974514468CD for ; Sat, 29 Aug 2015 00:53:51 -0700 (PDT) Date: Sat, 29 Aug 2015 00:56:30 -0700 (MST) From: zhup To: freebsd-questions@freebsd.org Message-ID: <1440834990532-6035821.post@n5.nabble.com> Subject: How to make process working in background? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Aug 2015 07:56:38 -0000 Hello, I have below startup script. My question is how to make this process working in background? #!/bin/sh . /etc/rc.subr name=test rcvar=test_enable command="/usr/sbin/${name}" load_rc_config $name run_rc_command "$1" Why I am not able to stop this process? root@mys:~ # /etc/rc.d/test stop Stopping test. Waiting for PIDS: 5146 5147Stopping oscam. Waiting for PIDS: 5146 5147 Thank you in advance. -- View this message in context: http://freebsd.1045724.n5.nabble.com/How-to-make-process-working-in-background-tp6035821.html Sent from the freebsd-questions mailing list archive at Nabble.com.