[systemd-devel] ExecRestart
Brandon Black
blblack at gmail.com
Thu Nov 29 15:15:59 PST 2012
On Thu, Nov 29, 2012 at 11:36 AM, Alexander E. Patrakov
<patrakov at gmail.com>wrote:
> Brandon Black <blblack at gmail.com> wrote:
> > The daemon's "fast restart" code does all of the expensive startup
> > operations in the new daemon first (e.g. parsing large data input), then
> This is not what a restart means in systemd world. What you described is
> just a nice way to do a reload. However, as the main pid changes during
> this reload, please be careful - several years ago that would hit an
> assertion in systemd, and due to my aziness I have not verified the fix.
>
The current ExecReload code apparently intentionally doesn't allow for a
restart-like operation, though. If ExecReload replaces the process with a
fresh PID, that PID ends up getting SIGKILL'd by systemd. cf. this
post/thread:
http://lists.freedesktop.org/archives/systemd-devel/2012-June/005402.html .
I've confirmed similar behavior recently with my daemon and F18's copy of
systemd.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20121129/edac5c08/attachment.html>
More information about the systemd-devel
mailing list