Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6471

Systemd: should I use wants/requires for already enabled service listen in After= [closed]

$
0
0

I have a systemd service named webserver.service that is wanted by multiuser.target (enabled by default on system). I have another service under another target named test.service that I want to run after webserver.service.Within test.servive I’m adding:

After=webserver.service

Is it enough or should I add following require statement as well:

Requires=webserver.service

Tried with just after statement is seems working as expected, just worried about any potential of race here.


Viewing all articles
Browse latest Browse all 6471

Trending Articles