Active Topics

 


Reply
Thread Tools
Posts: 393 | Thanked: 67 times | Joined on Feb 2010
#1
What is the best way to identify applications which start running when the device starts up and stay running? I have used top and htop to see processes, but I specifically want to identify processes and applications which start when the device is turned on. My goal is to remove unnecessary applications from startup to improve N900 performance.

Any thoughts are welcome, thanks.
 
hawaii's Avatar
Posts: 1,030 | Thanked: 792 times | Joined on Jun 2009
#2
One way would be to look at the upstart scripts in /etc/event.d/ or watch `lsof` and look at the "COMMAND" column to see what is opening files.

You'll notice A LOT of stale entries in /etc/event.d/ as many packages don't remove them - which is fairly ridiculous.

Last edited by hawaii; 2010-09-10 at 15:36.
 

The Following User Says Thank You to hawaii For This Useful Post:
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#3
Originally Posted by hawaii View Post
You'll notice A LOT of stale entries in /etc/event.d/ as many packages don't remove them - which is fairly ridiculous.
That's nothing to do with the packages. Apt doesn't remove any configuration files (i.e. anything under /etc) unless run with --purge.
 
Posts: 393 | Thanked: 67 times | Joined on Feb 2010
#4
Thanks for the response.

Can we put together a list of the upstart scripts that should be present on a stock 1.2 version of the N900? Since I have installed so many applications it's very hard for me to tell which scripts in /etc/event.d/ were there to begin with versus which scripts were installed by a third party application.
 
hawaii's Avatar
Posts: 1,030 | Thanked: 792 times | Joined on Jun 2009
#5
uncompress the FIASCO image and you can view the ones that are included from an installation.
 

The Following User Says Thank You to hawaii For This Useful Post:
Posts: 671 | Thanked: 1,630 times | Joined on Aug 2010
#6
Maybe add a line to the startup script
/etc/init.d/zzinitdone (line 25 perhaps)

Code:
...
...
INITFILE=/etc/init.d/zzinitdone

ps -A >> /home/user/MyDocs/startedapps.txt

for "$1" in
...
...
and judge from the output?

zzinitdone is a kludge (says so, anyway)
so looks like that is what the original team had in mind

...or not...

HTH
 
Posts: 393 | Thanked: 67 times | Joined on Feb 2010
#7
Is there any chance someone who has an umcompressed FIASCO image handy could list the files present in the /etc/event.d directory?

Thank you

Originally Posted by hawaii View Post
uncompress the FIASCO image and you can view the ones that are included from an installation.
 
Posts: 393 | Thanked: 67 times | Joined on Feb 2010
#8
No takers for the below request?

Originally Posted by mail_e36 View Post
Is there any chance someone who has an umcompressed FIASCO image handy could list the files present in the /etc/event.d directory?

Thank you
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:12.