[systemd-devel] Netconsole NG

poma pomidorabelisima at gmail.com
Sun Apr 6 10:37:40 PDT 2014


On 06.04.2014 18:42, Cristian Rodríguez wrote:
> El 06/04/14 12:59, poma escribió:
> 
>> /usr/lib/systemd/system/netconsole.service:
>> [Unit]
>> Description=Adds the netconsole module with the configured parameters
>> After=network.target
>>
>> [Service]
>> EnvironmentFile=/etc/sysconfig/netconsole
>>
>> Type=simple
>> RemainAfterExit=yes
>> ExecStart=/usr/sbin/modprobe netconsole
>> netconsole=${SRC_PORT}@${SRC_IP}/${SRC_DEV},${DST_PORT}@${DST_IP}/${DST_EHA}
>> ExecStop=/usr/sbin/modprobe -r netconsole
>>
>> [Install]
>> WantedBy=multi-user.target
>>
>>
>> The original SysV netconsole service with related config - still in use,
>> https://git.fedorahosted.org/cgit/initscripts.git/plain/rc.d/init.d/netconsole
>> https://git.fedorahosted.org/cgit/initscripts.git/plain/sysconfig/netconsole
>>
>> Feel free to comment.
> 
> Do not call modprobe from unit files, use a modules-load.d snippet instead.

Netconsole ain't module vulgaris.
Snippet, yeah right.

> Hrmm.. a systemd-netconsole.service that could setup this is a clean 
> race-free fashion will be a cool addition to the stack ;)

Say whaaat?


poma




More information about the systemd-devel mailing list