Post by @mcc@mastodon.social

mcc
@mcc @mastodon.social

Okay so.

I'm apparently not allowed to use apache2ctl anymore. It confuses systemd.

apache2ctl had a command named "graceful". This would, instead of hard rebooting the server, attempt to cleanly exit the server when all files currently being served were done being served, then restart it.

Can systemd restart be configured to do this? Will systemd restart somehow do this by default?

Replying to @mcc@mastodon.social
mcc
@mcc @mastodon.social

$ sudo systemctl reload apache2
apache2.service is not active, cannot reload

LENNART, I THINK YOU'LL FIND THAT'S IN FACT THE EASIEST TIME TO RELOAD?!?

Replying to @mcc@mastodon.social
mcc
@mcc @mastodon.social
Public en edited

Okay so get this. I looked inside the apache2.service file.

ExecStart=/usr/sbin/apachectl start
ExecStop=/usr/sbin/apachectl graceful-stop
ExecReload=/usr/sbin/apachectl graceful

So switching to systemd doesn't take away the apachectl behaviors I want at all! Because I haven't stopped using apachectl at all!! All that's changed is I no longer get to call apachectl myself!! Lennart has to do it for me!!!

Replying to @mcc@mastodon.social
Karel P Kerezman
@greyduck @wellduck.me

@mcc Mmmm, tasty tasty obfuscation layers. Yum.

Replying to @mcc@mastodon.social
Irenes (many)
@ireneista @irenes.space

@mcc yes. on NetBSD we've been noticing more and more ways in which systemd's abstractions had been getting in our way, and we'd been taking it as a good thing (reproducibility!), but, uh............

Replying to @mcc@mastodon.social
JdeBP
@JdeBP @tty0.social