Page 1 of 1

Error message on Boot Up 'Systemctl'

Posted: Wed Jul 25, 2018 7:22 am
by Chandru42
Hallo all,

I have tried Init.d method to run my python program on Raspberry pi at start up by following this guide.

https://www.dexterindustries.com/howto/ ... t-startup/

But that doesn't work for me. Then i have tried bash.rc method which has worked for me. Everything is working fine. Though at start up i am getting an error message

" Failed to start AWL.py:service , see systemctl status for details" AWL.py is my program name here.



I wish to remove this line while start up. I have attached the screenshots of the error and the commands i have used in init.d method. Can anyone help me to get through this?

Re: Error message on Boot Up 'Systemctl'

Posted: Wed Jul 25, 2018 8:20 am
by DirkS
Try

Code: Select all

sudo systemctl disable AWL.py.service
and reboot

Re: Error message on Boot Up 'Systemctl'

Posted: Wed Jul 25, 2018 8:59 am
by Chandru42
DirkS wrote: Try

Code: Select all

sudo systemctl disable AWL.py.service
and reboot
Thansk for the reply. i have tried this line but it is showing the same error again. i have attached the screenshot of this one.
s22.jpg
s22.jpg (195.87 KiB) Viewed 379 times

Re: Error message on Boot Up 'Systemctl'

Posted: Wed Jul 25, 2018 9:40 am
by DirkS
That error message suggests you did not follow the tutorial fully.
Try

Code: Select all

sudo update-rc.d AWL.py remove
Next time you try to add a script as a service go for 'systemd'.

Re: Error message on Boot Up 'Systemctl'

Posted: Wed Jul 25, 2018 11:30 am
by Chandru42
DirkS wrote: That error message suggests you did not follow the tutorial fully.
Try

Code: Select all

sudo update-rc.d AWL.py remove
Next time you try to add a script as a service go for 'systemd'.
The error gone now. Thank you :D