S
S
syxoi2016-05-02 18:06:28
linux
syxoi, 2016-05-02 18:06:28

Debian 8: if a unit requires another unit to run?

Hello!
Available: Debian 8, tftpd-hpa, isc-dhcp-server, networkmanager.
Problem: For some reason, NetworkManager is loaded after tftpd-hpa and isc-dhcp-server, respectively, the network is not yet available, and these units are already starting. I tried to write in /etc/init.d/tftpd-hpa: Required-Start=NetworkManager.service but it did not help. Tell me how to make tftpd-hpa and isc-dhcp-server start when the network is already initialized?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Ergil Osin, 2016-05-02
@Ernillew

8ka we already have on systemd?
Then stop writing something in /etc/init.d/* and go read https://fedoramagazine.org/systemd-unit-dependenci... about systemd unit dependencies.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question