Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/security/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Networking 依赖于生成的init.d服务的Systemd服务_Networking_Systemd - Fatal编程技术网

Networking 依赖于生成的init.d服务的Systemd服务

Networking 依赖于生成的init.d服务的Systemd服务,networking,systemd,Networking,Systemd,我使用的系统使用systemd,但网络bringup仍然使用旧的init.d脚本。我已经添加了一个systemd服务以在系统启动时运行,但是我想确保它在网络安装之前运行。在哪里可以指定此行为以及如何指定?您需要找到设置网络的旧版init.d脚本的名称。Systemd为此提供了服务。然后需要将Before=指令添加到服务中。例如,如果有类似于/etc/rc5.d/network的内容,则systemd将有一个服务network.service。然后只需添加Before=network.servic

我使用的系统使用systemd,但网络bringup仍然使用旧的init.d脚本。我已经添加了一个systemd服务以在系统启动时运行,但是我想确保它在网络安装之前运行。在哪里可以指定此行为以及如何指定?

您需要找到设置网络的旧版init.d脚本的名称。Systemd为此提供了服务。然后需要将Before=指令添加到服务中。例如,如果有类似于/etc/rc5.d/network的内容,则systemd将有一个服务network.service。然后只需添加Before=network.service