Chandru42
Posts: 18
Joined: Fri Apr 13, 2018 7:23 am

Error message on Boot Up 'Systemctl'

Wed Jul 25, 2018 7:22 am

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?
Attachments
2018-07-25 09_18_32-s1.jpg - IrfanView (Zoom_ 785 x 1047).jpg
2018-07-25 09_18_32-s1.jpg - IrfanView (Zoom_ 785 x 1047).jpg (128.23 KiB) Viewed 411 times

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Error message on Boot Up 'Systemctl'

Wed Jul 25, 2018 8:20 am

Try

Code: Select all

sudo systemctl disable AWL.py.service
and reboot

Chandru42
Posts: 18
Joined: Fri Apr 13, 2018 7:23 am

Re: Error message on Boot Up 'Systemctl'

Wed Jul 25, 2018 8:59 am

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 378 times

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Error message on Boot Up 'Systemctl'

Wed Jul 25, 2018 9:40 am

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'.

Chandru42
Posts: 18
Joined: Fri Apr 13, 2018 7:23 am

Re: Error message on Boot Up 'Systemctl'

Wed Jul 25, 2018 11:30 am

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

Return to “Beginners”