Page 1 of 1

Silly question

Posted: Sun Feb 11, 2018 1:08 pm
by tony1812
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.

Re: Silly question

Posted: Sun Feb 11, 2018 1:23 pm
by SurferTim
Maybe autostart?
/home/pi/.config/lxsession/LXDE-pi/autostart

Re: Silly question

Posted: Sun Feb 11, 2018 2:49 pm
by tony1812
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?

Re: Silly question

Posted: Sun Feb 11, 2018 2:59 pm
by SurferTim
/etc/rc.local?

Re: Silly question

Posted: Sun Feb 11, 2018 3:04 pm
by pcmanbob
cron ?

crontab -e or sudo crontab -e

Re: Silly question

Posted: Sun Feb 11, 2018 3:12 pm
by n67
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!

Re: Silly question

Posted: Sun Feb 11, 2018 3:44 pm
by tony1812
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