Hi, All,
I have two services: service_A and service_B. The service_A which depends on the tap0 uevent will configure the virtual net,
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.
udev rule:
ACTION="" SUBSYSTEM=="net", DEVPATH=="/devices/virtual/net/tap0", TAG+="systemd", ENV{SYSTEMD_WANTS}+="service_A.service"
service_A.service:
[Unit]
Description=setting up bridge
[Service]
Type=oneshot
ExecStart=-/usr/bin/net_config.sh
RemainAfterExit=yes
Description=setting up bridge
[Service]
Type=oneshot
ExecStart=-/usr/bin/net_config.sh
RemainAfterExit=yes
service_B.service:
[Unit]
DefaultDependencies=no
After=service_A.service
After=local-fs.target
[Service]
Type=simple
ExecStart=/usr/bin/prog_B
Restart=always
OOMScoreAdjust=-941
[Install]
WantedBy=sysinit.target
Could anyone give me some suggestion?
Thanks!
Best Regards,
Li Cheng
_______________________________________________ systemd-devel mailing list systemd-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/systemd-devel