[arch-general] In the systemd scheme, where should startup/stop scripts for things systemd can't handle go?
Mantas Mikulėnas
grawity at gmail.com
Fri Jul 27 17:48:41 EDT 2012
On Sat, Jul 28, 2012 at 12:39 AM, C Anthony Risinger <anthony at xtfx.me> wrote:
> also note that you likely want to simply run the service differently
> that you had previously.
>
> for example, i modify several .service files -- even ones that are
> shipped upstream -- because they are pointlessly configured as
> `forking` when they could be much better integrated (ddclient, dhcpd,
> hostapd, SEVERAL unfortunately) ...
They are often configured as Type=forking because they only fork after
performing some form of initialization (e.g. dhcpcd [the client] might
fork only after actually receiving a DHCP lease), and systemd will
interpret this as a signal that the service has now started, without
having to add systemd-specific sd_notify().
--
Mantas Mikulėnas
More information about the arch-general
mailing list