| Author |
Message |
Dani17
Joined: 29 Jan 2011 Posts: 10
|
Posted: Sat 26 Mar 2011, 12:52 Post subject:
Kill processes at startup |
|
Hi.
I use puppy in an old notebook for download with amule and torrent.
But I would to reduce the use of ram and cpu.
can i kill some processes that I don't use?
thanks
|
|
Back to top
|
|
 |
Dougal

Joined: 19 Oct 2005 Posts: 2505 Location: Hell more grotesque than any medieval woodcut
|
Posted: Sat 26 Mar 2011, 15:58 Post subject:
|
|
There isn't much to kill, but you could probably go to /etc/init.d and make the scripts there non-executable (right-click and go to File->Permissions). (There might be an option in the Boot Manager for this?)
You should also search the forum as someone had a thread about this in the past.
_________________ What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
|
|
Back to top
|
|
 |
`f00

Joined: 06 Nov 2008 Posts: 792 Location: the Western Reserve
|
Posted: Sat 26 Mar 2011, 21:18 Post subject:
Subject description: this topic is here now anyway, so.. |
|
As Dougal started with (yep) some things you can 'de-executize' and they also may be a (preferred) option from the bootmanager in some pups. Other places to look:
b) /root/Startup dir - 'de-executize' unwanted scripts if they have no way to toggle them off otherwise
c) /root/.xinitrc - some lines can be commented out but do be careful doing that editing
d) the audio mixer startup is usually in delayed_run (don't recall the exact path but a search should find) - it's not much saving anyhow if you do use it occasionally.
e) If you don't use rox's drag'n'drop desktop or the driveicons you can save a bit there (comment out pertinent lines regarding PuppyPin in c) and untick stuff in eventmanager)
f) check out some optimized pups like Jemimahs stuff for portable comps (lappies, eees etc) or other skinny-running dogs (like zenfunk's PULP or similar)
.. as for what you can safely trim down to, that varies but a lot of stuff that's started up and running can be disabled and made on-demand. Use a utility like htop or pprocess to see what's needed and not-so-much. Also watch out for unusual side effects as some things are integrated with others.
GL
|
|
Back to top
|
|
 |
bigpup

Joined: 11 Oct 2009 Posts: 3687 Location: Charleston S.C. USA
|
Posted: Sat 26 Mar 2011, 23:00 Post subject:
|
|
menu->system->BootManager configure bootup
There is a manage system services.
Gives you a selection of stuff that can be turned off.
|
|
Back to top
|
|
 |
Bruce B

Joined: 18 May 2005 Posts: 10817 Location: The Peoples Republic of California
|
Posted: Sun 27 Mar 2011, 02:14 Post subject:
|
|
Request the application to close before killing it. I wrote a script for you. Use it like this:
killsoft ROX-Filer firefox firefox-bin geany and etc
killsoft
| Code: | #!/bin/bash
# sleep time here if you want delay
for ((cnt=0;cnt<3;cnt++)) ;do
for i in $@ ; do
kill -s 15 `pidof $i` 2>/dev/null
done
done
for ((cnt=0;cnt<2;cnt++)) ;do
for i in $@ ; do
kill -s 9 `pidof $i` 2>/dev/null
done
done
# sleep 1 # optional feature before forcing the
# application down, in case the request is taking
# a little time - use time 1,2,3 - whatever
# verify success here
for i in $@ ; do
ps | grep $i | grep -v grep | grep -v $0
done |
Script attached
Also, you can exec it from another script which contains the
predetermined parameters.
| Code: | | exec killsoft app xapp yapp |
~
| Description |
|

Download |
| Filename |
killsoft.zip |
| Filesize |
419 Bytes |
| Downloaded |
84 Time(s) |
_________________ New! Puppy Linux Links Page
|
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2174 Location: UK
|
Posted: Sun 27 Mar 2011, 06:32 Post subject:
|
|
As bigpup said, you can choose what loads at startup through the boot manager thing in Menu->System.
I also attached my own startup control thing... It does not require a save file to be in use.
With this tool, you can control what gets started from /etc/init.d and /root/Startup
You might also want to look in /root/.xinitrc to see what is being loaded there - although there is not much in there that you can 'do without'...
screenshot of the 'Startups' tool here
| Description |
a simple tool to manage startup processes
|

Download |
| Filename |
startups.gz |
| Filesize |
10 KB |
| Downloaded |
97 Time(s) |
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
|
|
Back to top
|
|
 |
big_bass

Joined: 13 Aug 2007 Posts: 1736
|
Posted: Mon 28 Mar 2011, 12:19 Post subject:
|
|
Hey sc0ttman
thats nice it even auto detects what you have running
thank you
-------------------------------------------------------------------
here is what I was using just a simple kill by name
which is still useful for apps that get hung up /frozen
here is a firefox example simple but works well
| Code: | | pid=`ps aux | grep firefox | awk '{print $2}'`&&kill -9 $pid |
here is killbyname for multiple apps note: dont put a shebang #!/bin/bash
| Code: |
# killbyname
# place in /usr/bin
# CLI tool to kill by name or names
# Joe Arose ..big_bass
# example below
# killbyname firefox leafpad
for process in "$@"
do pid=$(ps aux | grep "$process" | awk '{print $2}')&& kill -9 $pid
done |
thanks again
Joe
_________________ slackware 14
|
|
Back to top
|
|
 |
Dani17
Joined: 29 Jan 2011 Posts: 10
|
Posted: Thu 31 Mar 2011, 10:51 Post subject:
|
|
thanks a lot.
I don't understand at all these solutions.
I saw the boot manager config bootup.
can I deselect all these options?
the following suggestions I have not understood
|
|
Back to top
|
|
 |
|