The way that hot-restart works is that the USR2 signal is sent to the
currently running manager, which itself will spawn a new manager and then
wait for it to be ready, then exit. I don't think that Type=simple will
correctly track the new process when this happens since the new process was
not spawned by systemd, but I could be wrong, I haven't tested this since
hypnotoad's pidfile behavior was fixed to work better for systemd. But in
any case unless there's some other benefit to running it in foreground
mode, I still think it's better to use its "default" forking mode.

-Dan

On Thu, Nov 23, 2017 at 11:36 AM, Boyd Duffee <b.duf...@keele.ac.uk> wrote:

> On 23/11/17 16:14, Dan Book wrote:
> > I would not recommend running hypnotoad as a Type=simple service with -f.
> > This will not allow you to use hot-restarts via systemctl reload.
>
> Naively, I _can_ hot-restart with systemctl reload servicename, but now
> you've got me worried.
> Any idea why it's not advisable and is Type=forking the proper solution?
>
> --
> Boyd Duffee            Keele University    (01782) 734225
> DevOps - Student Facing Systems
>
>   Some people are born on third base and go through life
>   thinking they hit a triple - Barry Switzer
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mojolicious" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mojolicious+unsubscr...@googlegroups.com.
> To post to this group, send email to mojolicious@googlegroups.com.
> Visit this group at https://groups.google.com/group/mojolicious.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to