tony1812
Posts: 354
Joined: Sat Jul 15, 2017 12:40 pm
Location: Boston MA.

Silly question

Sun Feb 11, 2018 1:08 pm

Hello, this is a really silly question. About six months ago, I wrote a python script. I put its path in /etc/profile so that it would start at boot, which worked fine. But now I wish not to have it start at boot anymore, so I deleted that path from /etc/profile. But the script still starts at boot. Where else cause it to start?I don't re-call added the path anywhere else. Or may be I did but where? Thanks.

SurferTim
Posts: 1769
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: Silly question

Sun Feb 11, 2018 1:23 pm

Maybe autostart?
/home/pi/.config/lxsession/LXDE-pi/autostart

tony1812
Posts: 354
Joined: Sat Jul 15, 2017 12:40 pm
Location: Boston MA.

Re: Silly question

Sun Feb 11, 2018 2:49 pm

SurferTim wrote:
Sun Feb 11, 2018 1:23 pm
Maybe autostart?
/home/pi/.config/lxsession/LXDE-pi/autostart
Thanks for the reply.
Nope. :( there are so many ways to start a script, I must have placed the path some where and forget, but where?

SurferTim
Posts: 1769
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: Silly question

Sun Feb 11, 2018 2:59 pm

/etc/rc.local?

pcmanbob
Posts: 6450
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Silly question

Sun Feb 11, 2018 3:04 pm

cron ?

crontab -e or sudo crontab -e
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

n67
Posts: 938
Joined: Mon Oct 30, 2017 4:55 pm

Re: Silly question

Sun Feb 11, 2018 3:12 pm

Probably the best thing to do is to move/rename/delete (your choice - they all amount to the same thing) the script, then reboot and look for error messages. That should tell you which component is running it.

Also, if the overall goal is simply to not be running it anymore, then, well, mission accomplished!
"L'enfer, c'est les autres"

G fytc hsqr rum umpbq rm qyw rm rfc kmbq md rfgq dmpsk:

Epmu Sn!

J lnacjrw njbruh-carppnanm vxm rb mnuncrwp vh yxbcb!

tony1812
Posts: 354
Joined: Sat Jul 15, 2017 12:40 pm
Location: Boston MA.

Re: Silly question

Sun Feb 11, 2018 3:44 pm

It wasn't in cron or /etc/rc.local either. I finally back up the script and did what n67 suggested deleted the script. now it start normally. yay! : ) Just for future reference, besides the above methods, where else can trigger a script to start at boot? Thanks guys

Return to “Beginners”