You are not logged in.
Hi, I have a daemon that I want to convert to a service unit of systemd.
The daemon tests if a module is loaded, and if not, modprobes it.
I do not want to load that module at boot up, only if the service is launched.
Is there a "proper" way to add something like RequiredModule=xxx to a service unit?
Thanks!
Last edited by Wasser (2012-09-03 08:58:02)
Offline
Maybe simply run modprobe with ExecStartPre. The command succeeds even if the module was already loaded.
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |
Offline
That works for me, thanks!
Offline