[systemd-devel] Netconsole NG
Cristian Rodríguez
crrodriguez at opensuse.org
Sun Apr 6 09:42:24 PDT 2014
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.
Hrmm.. a systemd-netconsole.service that could setup this is a clean
race-free fashion will be a cool addition to the stack ;)
More information about the systemd-devel
mailing list