<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi, All,</div><div>     I have two services:  service_A and service_B.  The service_A which depends on the tap0 uevent will configure the virtual net,  </div><div>while the service_B which depends on the virtual net should run After the service_A,  but  the "After=Service_A" seems to have no effect.</div><div><br></div><div>udev rule:</div><div><span style="color: rgb(17, 31, 44); font-family: -apple-system, system-ui, "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, Roboto, "Droid Sans", "Helvetica Neue", sans-serif; white-space: pre-wrap;">ACTION=="add", SUBSYSTEM=="net", DEVPATH=="/devices/virtual/net/tap0", TAG+="systemd", ENV{SYSTEMD_WANTS}+="service_A.service"</span></div><div><span style="color: rgb(17, 31, 44); font-family: -apple-system, system-ui, "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, Roboto, "Droid Sans", "Helvetica Neue", sans-serif; white-space: pre-wrap;"><br></span></div><div>service_A.service:</div><div><span style="color: rgb(17, 31, 44); font-family: -apple-system, system-ui, "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, Roboto, "Droid Sans", "Helvetica Neue", sans-serif; white-space: pre-wrap;">[Unit]</span><br style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); box-sizing: border-box; background-clip: padding-box; color: rgb(17, 31, 44); font-family: -apple-system, system-ui, "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, Roboto, "Droid Sans", "Helvetica Neue", sans-serif; white-space: pre-wrap;"><span style="color: rgb(17, 31, 44); font-family: -apple-system, system-ui, "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, Roboto, "Droid Sans", "Helvetica Neue", sans-serif; white-space: pre-wrap;">Description=setting up bridge</span><br style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); box-sizing: border-box; background-clip: padding-box; color: rgb(17, 31, 44); font-family: -apple-system, system-ui, "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, Roboto, "Droid Sans", "Helvetica Neue", sans-serif; white-space: pre-wrap;"><br style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); box-sizing: border-box; background-clip: padding-box; color: rgb(17, 31, 44); font-family: -apple-system, system-ui, "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, Roboto, "Droid Sans", "Helvetica Neue", sans-serif; white-space: pre-wrap;">[Service]<br style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); box-sizing: border-box; background-clip: padding-box; color: rgb(17, 31, 44); font-family: -apple-system, system-ui, "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, Roboto, "Droid Sans", "Helvetica Neue", sans-serif; white-space: pre-wrap;"><span style="color: rgb(17, 31, 44); font-family: -apple-system, system-ui, "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, Roboto, "Droid Sans", "Helvetica Neue", sans-serif; white-space: pre-wrap;">Type=oneshot</span><br style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); box-sizing: border-box; background-clip: padding-box; color: rgb(17, 31, 44); font-family: -apple-system, system-ui, "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, Roboto, "Droid Sans", "Helvetica Neue", sans-serif; white-space: pre-wrap;"><span style="color: rgb(17, 31, 44); font-family: -apple-system, system-ui, "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, Roboto, "Droid Sans", "Helvetica Neue", sans-serif; white-space: pre-wrap;">ExecStart=-/usr/bin/net_config.sh</span><br style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); box-sizing: border-box; background-clip: padding-box; color: rgb(17, 31, 44); font-family: -apple-system, system-ui, "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, Roboto, "Droid Sans", "Helvetica Neue", sans-serif; white-space: pre-wrap;"><span style="color: rgb(17, 31, 44); font-family: -apple-system, system-ui, "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, Roboto, "Droid Sans", "Helvetica Neue", sans-serif; white-space: pre-wrap;">RemainAfterExit=yes</span></div><div><span style="color: rgb(17, 31, 44); font-family: -apple-system, system-ui, "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, Roboto, "Droid Sans", "Helvetica Neue", sans-serif; white-space: pre-wrap;"><br></span></div><div>service_B.service:</div><div>[Unit]</div><div>DefaultDependencies=no</div><div>After=service_A.service</div><div>After=local-fs.target</div><div><br></div><div>[Service]</div><div>Type=simple</div><div>ExecStart=/usr/bin/prog_B</div><div>Restart=always</div><div>OOMScoreAdjust=-941</div><div><br></div><div>[Install]</div><div>WantedBy=sysinit.target </div><div><br></div><div>Could anyone give me some suggestion?</div><div> Thanks!</div><div><br></div><div><br></div><div>Best Regards,</div><div>Li Cheng</div><div><br></div></div><br><br><span title="neteasefooter"><p> </p></span>