[systemd-devel] modprobe in service file

Tomasz Torcz tomek at pipebreaker.pl
Tue Nov 8 08:44:34 PST 2011


On Tue, Nov 08, 2011 at 10:14:03AM -0500, Michael D. Berger wrote:
> In my /etc/init.d/filterDaemon, I have, for example,
>    modprobe -q ip_queue
> How do I do this in a new filterDaemon.service?

  You can use ExecStartPre=, but nowadays it's better to load the modules
at bootup, by echo ip_queue > /etc/modules-load.d/filterDaemon.conf
(or by shipping this file ine package).

-- 
Tomasz Torcz                        To co nierealne -- tutaj jest normalne.
xmpp: zdzichubg at chrome.pl          Ziomale na życie mają tu patenty specjalne.



More information about the systemd-devel mailing list