Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 May 2016 10:06:00 +0200
From:      Adam Lindberg <adam.lindberg@wooga.net>
To:        RW <rwmaillists@googlemail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Pidfile generated by /usr/sbin/daemon not usable by rc.d script
Message-ID:  <3B43299B-FFC3-4B02-A6BB-74C6449874C4@wooga.net>
In-Reply-To: <20160525202656.71f51c86@gumby.homeunix.com>
References:  <1249E74D-FB34-4FF3-B670-38D80B1B07AF@wooga.net> <20160525141347.7e82622e@gumby.homeunix.com> <20160525142724.7ccadc4e@gumby.homeunix.com> <E4F4D59F-1CA0-4A4C-9E76-4ADD988993CC@wooga.net> <20160525202656.71f51c86@gumby.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Okay, thanks, that makes sense.

1. Is the sed =E2=80=9Chack=E2=80=9D okay for now? Are there any risks =
with modifying the pid file after it=E2=80=99s been created (too early, =
too late etc.)?
2. If this is a bug in /etc/rc.subr, how do I report it? I=E2=80=99m new =
to FreeBSD. :-)

Cheers,
Adam

--
Adam Lindberg | Backend Engineer
Wooga GmbH | Saarbr=C3=BCcker Str. 38 | D-10405 Berlin

Place of business: Berlin
Registered at the local court Berlin-Charlottenburg, HRB 117846 B
Managing Directors: Jens Begemann, Philipp M=C3=B6ser, Jan Miczaika

> On 25 May 2016, at 21:26 , RW via freebsd-questions =
<freebsd-questions@freebsd.org> wrote:
>=20
> On Wed, 25 May 2016 17:12:36 +0200
> Adam Lindberg wrote:
>=20
>> Hi,
>>=20
>> I don=E2=80=99t know what powerd is and how it factors into this. :-)
>=20
> It's an example of a daemon that generates a pid file without a
> newline, and yet "stop" and "status" work.
>=20
> It turns out that /etc/rc.d/powerd doesn't define pidfile, in which
> case rc.subr finds the pid from the output of ps. So it's not a
> counter-example and it does appear to be a bug that rc.subr can't cope
> with a pid file without a newline.
>=20
> You could use the same method, but using sed seems safer.
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to =
"freebsd-questions-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B43299B-FFC3-4B02-A6BB-74C6449874C4>