0

I have a c++ program that is running perfectly fine if I run it by executing,

sudo /Morreels/./launcher

Sadly the same line (without sudo) won't work in the rc.local file on startup... When trying to execute rc.local on startup it gives me the following error:

failed to start rc.local see compatibility 'systemctl-daemon'

When I try to start the rc.local service by executing :

service rc.local start

Then it gives me the following error

Unit file of rc.local service changed on disk, 'system daemon-reload' recommended. Job for rc-local.service failed. See 'systemctl status rc-local.service' and 'journalctl -xn' for details

Below (picture) I have what I get when typing : 'systemctl status rc-local.service'

My program (launcher) relies on MySQL & A connection between arduino and ModBusMaster(485), I have been thinking that maybe these services haven't been started and thats why it fails, but I cant seem to find how to include those services into the startup list (as in msconfig for windows)

OUTPUT

migrated from stackoverflow.com May 18 '16 at 17:48

This question came from our site for professional and enthusiast programmers.

0

Simply adding my sudo /Morreels/./launcher line to the .bashrc file in /home/pi folder ran everything and fixed it !

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.