-
-
Notifications
You must be signed in to change notification settings - Fork 503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System | rc.local failed to start #2566
Comments
@Remonli
This means that something has written the Please check:
I just wanted to check on my VM and found some important change:
|
root@DietPi[22:14:29]:~#systemctl enable rc-local.service
root@DietPi[22:14:34]:~#cat /lib/systemd/system/rc-local.service
/etc/rc.local is correct in both content and execute privilege,but it just do not start on reboot, while the same rc.local starts as normal on another debian server. And you're right, systemctl start rc-local.service can start it eventually without reload. It really confuse |
@Remonli
This should only happen, if I can imagine that the enabled symlink and the static unit on reboot cases some inconsistency error, which is perhaps the reason why the script is not called. What does happen if you do:
Also try to do a dist upgrade, to resolve possible version mismatches:
|
Sorry for late reply.
And after reboot, still not yet start rc.local correctly.Same as this:
|
I changed rc-local.service as same as another debian stretch server as below, it works fine now. Looks like some dietpi service goes wrong , so rc-local does not start correctly.
|
@Remonli Ah wait, your commented old service now looks different to the You use a quite old DietPi image right? In the past we used rc.local for DietPi scripts as well but changed this some time ago. You service content looks like the one we left for compatibility reasons. Yeah and this seems to conflict with the new Okay so now all this makes sense. We can fix this on all systems:
|
Actually , I installed with latest 6.20 image and updated to 6.21.1 automaticly. |
@Remonli But I will update the RPi image soon as well, most properly after v6.22 release. Will check other images as well that I can redo (x86). |
ADMIN EDIT
Solution:
Required Information
6.21.1
9.8
Linux DietPi 4.14.79-v7+
RPi 2 Model B (armv7l)
Additional Information (if applicable)
/etc/rc.local was not excuted after systemctl enable rc-local.service and reboot.
systemctl start rc-local.service
Warning: rc-local.service changed on disk. Run 'systemctl daemon-reload' to reload units.
And it will be successfully if run systemctl daemon-reload and then start again systemctl start rc-local.service, however , after reboot , same situation happens.
Pls help check , thanks.
The text was updated successfully, but these errors were encountered: