[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NetBSD style rc.d scripts?
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: Re: NetBSD style rc.d scripts?
- From: David Wollmann <dwollmann_(_at_)_puttybox_(_dot_)_com>
- Date: Wed, 22 Jan 2003 22:55:04 -0600
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 22 January 2003 14:41, Zvezdan Petkovic wrote:
> On Wed, Jan 22, 2003 at 11:39:30AM +0100, Ralf Hornik wrote:
> > Nils Bokermann wrote:
> > >Is it really too much work to do a kill -HUP `cat /var/run/foo.pid`? If
> > >the daemons do not place a pid file, that would really be a place for a
> > >wrapper scipt.
> >
> > No, because:
> >
> > kill -HUP $(ps -aux | awk '/$servicename/ {print $2;}')
[snip] ---+
> To make this even shorter drop this semicolon here. :-)
> AWK is not Perl and doesn't need semicolons, except when you have two
> statements on one line.
>
$ perl -le '{print ":)"}'
:)
- --
D. Wollmann
gpg 58A7 2C9A FCBC 8B4A 6F76 1BF1 9BE0 FB93 34C8 8A21
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+L3W0m+D7kzTIiiERAhWcAKCd/8YDqw4y1byhY52MaOa3uSK6vQCcDNik
N09kuaeYAvLD/LhJqpefSjw=
=8vl3
-----END PGP SIGNATURE-----
Visit your host, monkey.org