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

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 6096

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>