From owner-freebsd-ports@FreeBSD.ORG Tue Jun 9 19:11:52 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A787610656EB for ; Tue, 9 Jun 2009 19:11:52 +0000 (UTC) (envelope-from redchin@gmail.com) Received: from mail-gx0-f207.google.com (mail-gx0-f207.google.com [209.85.217.207]) by mx1.freebsd.org (Postfix) with ESMTP id 611C38FC23 for ; Tue, 9 Jun 2009 19:11:52 +0000 (UTC) (envelope-from redchin@gmail.com) Received: by gxk3 with SMTP id 3so274020gxk.19 for ; Tue, 09 Jun 2009 12:11:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=/xF7cZfy22kLzlo1YTWB8Lk4qZvzevzvyf5UR5dXRx4=; b=fvTdqNMg1dFhvDxb8XqTkG9ZBrSN3ulI1/nGFrLzI3R+n0bL4d/MuimEWiT0uCQ93t rxQ5JGy1WUeWbZiTJM9SIFGkZISXXWeryj/N3B3Oi4W7T+hYvkBYAI0DgE9jehXNSZ7u gL2msBScbLuFik+utLAO1M3mwWOw+USVn3Mp0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=PakB/I3zZK6GmqcJtSEvTgd8jrZnT5I1H+02TBCKOfMKft37SNsByfLP3HLuZymnvF owhuiEeXYKKBX+Dp/nf7F+g0fbvDFUurpOtD1IsEw+hcEItx5DNt1cTrh+x1QlhdRXT7 K9lfvVDhvF6yQ0TvKip0CcqsvMbvbFk2Rhsxg= MIME-Version: 1.0 Received: by 10.90.55.20 with SMTP id d20mr303173aga.89.1244572815584; Tue, 09 Jun 2009 11:40:15 -0700 (PDT) In-Reply-To: <17ca67550906091046t15dfa574i95e432a09e60d379@mail.gmail.com> References: <17ca67550906091046t15dfa574i95e432a09e60d379@mail.gmail.com> Date: Tue, 9 Jun 2009 11:40:15 -0700 Message-ID: <1d3ed48c0906091140t37fbdd4eq84a1153348db7a53@mail.gmail.com> From: Kevin Downey To: Edwin Shao Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-ports@freebsd.org Subject: Re: Port of "service" command X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2009 19:11:53 -0000 I have a similar shell function I am rather fond of: rc(){ find /etc/rc.d/"$1" /usr/local/etc/rc.d/"$1" -exec sudo {} `echo "$*"|cut -f 2- -d \ ` \; } kpd eskarina ~% rc ntpd restart Stopping ntpd. Waiting for PIDS: 1151. Starting ntpd. find: /usr/local/etc/rc.d/ntpd: No such file or directory zsh: exit 1 kpd eskarina ~% rc hald status find: /etc/rc.d/hald: No such file or directory hald is running as pid 1450. zsh: exit 1 kpd eskarina ~% On Tue, Jun 9, 2009 at 10:46 AM, Edwin Shao wrote: > Hello, > > I was wondering if there was a port of the Linux/UNIX service > , > command? If not, is there any > philosophical reason or roadblock to my creating one? > > Thanks, > Edwin > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > --=20 And what is good, Phaedrus, And what is not good=E2=80=94 Need we ask anyone to tell us these things?