=== disposable3 is now known as disposable2 | ||
jimcooncat | fresh install of ubuntu-server 18.04. Setting up monit and apache2. Confused about why the server guide suggests systemctl to control apache when there are init.d scripts installed. Can I continue to use /etc/init.d commands to control apache2 from monit? | 11:49 |
---|---|---|
rbasak | jimcooncat: systemd arranges /etc/init.d scripts to wrap systemd when systemd is in use. So I think using the init.d scripts is safe, but all you're really doing is calling systemctl (or perhaps the dbus API equivalent) through a wrapper. | 14:10 |
rbasak | Actually I'm not sure if that's accurate. | 14:11 |
rbasak | Do init scripts call systemd as a wrapper? I know it goes the other way round - systemd generates systemd service units for existing init.d scripts. | 14:11 |
rbasak | In any case, systemctl is closer to what the system is actually doing, so better to use that directly. | 14:12 |
xnox | rbasak, /lib/lsb/init-functions.d/40-systemd | 14:26 |
jimcooncat | rbasak xnox thank you | 14:32 |
xnox | jimcooncat, this has come up before; i'm hoping to remove `duplicate` init.d scripts in the future. | 14:33 |
jimcooncat | I'm getting back in the game from five years ago, love the older tools but don't want to paint myself into a corner by using them, so to speak | 14:36 |
xnox | jimcooncat, $ service foo start|stop|restart -> works on all systems, both new and old. | 14:38 |
RoyK | xnox: most systems use systemd now, though | 15:51 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!