Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [Solved] Some services fail at boot but start normally manually (Read 515 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[Solved] Some services fail at boot but start normally manually

Hi all!
I have dinit installed on one of ARMtix SBCs but at some point it became problematic to reboot it since for some reason it doesn't start dhcp client at boot. There are no messages in /var/log/dinit/dhcpcd.log about why doesn't it start. It was also same for dhclient. I also tried to add syslog-ng service but it also fails at boot and reports nothing. When i login via console and start these services, no errors happen.
What could happen here and how do i at least get logs?
ARMtix

Re: Some services fail at boot but start normally manually

Reply #1
Hi!
I review `dhcpcd` service and (maybe) I finded the problem. Just add this line to end of `/etc/dinit.d/dhcpcd` service:
Code: [Select]
depends-on = root-rw
Why this happens?
When service use `logfile` You need to add a "depends" on root read-write filesystem. because Dinit can't start that service without creating that log file.

Note: this command help you to figure out "Why this service is failing?"
Code: [Select]
sudo dinitctl status <service-name>

Regards

Re: Some services fail at boot but start normally manually

Reply #2
That was it, thanks!
ARMtix