Ubuntu :: Killing Processes At The Startup?
Feb 21, 2010
Why each boot-level consist of shell-scripts that start and stop processes? Why does the system while booting not just simply add the necessary programs for the next level by starting them, thus making the stopping of specific tasks not necessary and certainly speeding up the boot process?
View 5 Replies
ADVERTISEMENT
Jun 15, 2010
user@host$ killall -9 -u user Will it definitely kill all processes owned by user (including forkbombs)?
No new processes is spawned to user from other users. No user's processes are in D-sleep and unkillable.No processes are trying to detect and ptrace or terminate this started killall (but they can ptrace or do other things with each other) There is ulimit that prevents too much processes (but killall is already started and allocated it's memory)
E.g. if killall will finish untampered and successfully is it 100% that no processes are left with this uid? If no, how to do it properly (with standard commands and no root access). Will SysRq+I definitely kill all things (even replicating)?
View 2 Replies
View Related
Mar 10, 2011
I want to kill parent process after "fork()" method. but if I kill parent process with "exit(0)" method, main() thread is terminated as well so child prosess doesn't work anymore. Is there any way to kill only parent process without affecting to child process?
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
[code]....
View 1 Replies
View Related
Feb 18, 2011
Keep getting apt issues when trying to install packages. First it was tz stuff, now it's "Unpacking replacement libapr1..." forever. Don't ever recall having these issues with 10.10, how do I go about fixing this?sudo apt-get install subversion Preparing to replace libapr1 1.3.8-1build1 (using .../libapr1_1.3.8-1build1_i386.deb) Unpacking replacement libapr1 ...Just trying to install Subversion!
View 1 Replies
View Related
Jun 21, 2011
After installing and activating "ATI&AMD proprietary FGLRX graphics driver" ;in Ctrl+Alt+F2" mode, do following steps:sudo pidof X (to get pid number)sudo kill xxxx (xxxx is the pid number)Then , system hang up!If the FGLRX driver is not installed , there is no such problem
View 1 Replies
View Related
Jan 15, 2010
I have POPFile in my startup applications. I know how to automatically kill it when login out but cannot find a way to kill it if I just switch users (other than manually stopping it). It's important to kill it when using the switch users function because the new user will have access to the old user's POPFile database, have access to his email, etc, if I do not.I have a "lynx -dump http://127.0.0.1:8080/shutdown &>/dev/null" line in my /etc/gdm/PostSession/Default file that shuts down POPFile at log out. I need to do the same or something similar when switching user. Is there a way?
View 2 Replies
View Related
Jul 24, 2010
The open Office installation on Netbook Remix is too much for an Eeepc 701 (4gb), so, as you do, I uninstalled it and replaced it with Abiword/Gnumeric, but I keep receiving large-sized updates for Open Office! I don't need them (or in fact the CUPS updates either), but I don't know how to stop them from being rather forcefully offered each day.
View 2 Replies
View Related
Apr 9, 2011
I'm running a process on my university's supercomputer that takes several hours to run every time. Is there a command I can use to exit my ssh session without killing the process I'm running?
View 1 Replies
View Related
Jul 8, 2011
I use Ubuntu 10.04 server as a base for my media center, with rtorrent as my download program. I've had to move into a smaller place where I don't have direct control over the network, and where we have a vanishingly poor DSL connection. When I start up rtorrent, every computer on the network starts having dramatic slowdowns of internet speed, even when both my downloads and uploads are throttled to 1KBps, which is as low as rtorrent will go. Unfortunately, as I said, I don't have direct access to the router. The IT guy says my media center "is sending requests to all the computers on the network like crazy". How he knows that, I don't know, nor do I know exactly what he means.
But it is only when I have rtorrent running, even when it's only running 1k each way. It was my intention to test whether or not running utorrent on my Windows box had the same effect, but it's telling me "an attempt was made to access a socket in a way forbidden by its access permissions" on all trackers, which I've also been unable to resolve. It may or may not be symptomatic of the same issue, but the UI of rtorrent is painfully slow. As in, I push the down arrow, go make myself a sandwich and watch some telly, and maybe when I'm done it's selected the next torrent. I used to use Transmission, but it used more resources and interfered with watching shows.
View 1 Replies
View Related
Jan 22, 2011
I am trying to install a new NVIDIA Driver. as I usualy do I go to a terminal logging off and using "ctrl+Alt +F2" logging in as root and entering "init 3" but when I run "sh NVIDIA" it tells me "X server is still running." If I enter "init 5" it goes right to a gui. I have tried "killlall X11" with no results.
View 7 Replies
View Related
Aug 10, 2010
I have some heavy, long processes running on remote Linux machines. I use my laptop to SSH to these machine and run the processes from my couch.
BUT, when I want to shutdown my laptop, I am in trouble since the remote processes are killed.
I did my research and found out that "screen" is a great solution for me, it is! (As long as I don't SHUTDOWN my laptop). Isn't there a way to "persist" the "screen" sessions so I can shut it down and then re-attach to a session?
View 7 Replies
View Related
Oct 15, 2010
I have a zombie running on my computer(Ubuntu 10.10) and although I have tried killing it using the processes PID number it won't die.
Tasks: 137 total, 4 running, 132 sleeping, 0 stopped, 1 zombie
Cpu(s): 49.7%us, 50.3%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1016076k total, 938688k used, 77388k free, 25896k buffers
Swap: 3069948k total, 23140k used, 3046808k free, 584956k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1733 stephani 20 0 0 0 0 Z 46.7 0.0 52:34.34 transmiss <defunct>
Transmission has being running for almost 60 minutes and is consuming a very large amount of the CPU.
View 8 Replies
View Related
Oct 9, 2010
I want to capture PID of a program and kill it using the PID if the program is been executing beyond 5 seconds.The problem I'm facing is I have another copy of the same program running under different shell script, and the above code is killing both the process. How do I specifically kill the program which has started under the current running shell script.
View 2 Replies
View Related
Jul 19, 2010
I install the antivirus, ClamAV, onto a RedHat 4.8 box (yes it has to be that release of the OS to work with my other software needs) and after the install and giving the permissions to another user/group dedicated to this AV I get a ton of errors. After the install a few things pop up after a restart/logout. When trying to log back in the Gnome environment crashes so you cannot access any acct aside from using the text based environment. Two other error windows appear as well, one mentioning Bonobo has died and the other saying that Nautilus cannot be started due to Bonobo. I'm not too familiar with Bonobo can anyone fill me in on why those errors occured?
View 2 Replies
View Related
Oct 17, 2010
I'd like to make a few changes to the keymap; disabling caps lock and a few other changes. First I tried what has worked before:
editing /usr/share/X11/xkb/symbols/pc
and commenting out a line there:
// key <CAPS> { [ Caps_Lock ] };
But changes in the xkb-files apparently only takes effect after login, and this particular system is set to autologin (i.e. it only works after I log out and log in again, not right after a reboot). I also tried putting
xmodmap -e "clear Lock" in one of the shell's startup-files (/etc/zsh/zshrc) No luck with that either. The above command works fine if I manually type it at the prompt, but for some strange reason it won't work in the shell startup script (and I know it has been executed since the lines before and after it in the script work fine).
View 1 Replies
View Related
Mar 16, 2011
It's taken a lot of work, but I have figured out over thecourse of many many fresh installs over the past few days that the kernel updatefrom the update manager in ununtu is breaking my system. This is both for the -22 and -27 updates.Is anyone else having problems with these and/or is there a fix?
View 9 Replies
View Related
Jun 26, 2011
I am having a problem since upgrading from OPENSuSE 11.2 to 11.4 (both 64bit). The problem goes back to some issue with repositories which is what "forced" me into an 11.4 upgrade.
So, upon completing the install, and every time I run YAST to do updates, I get a message about this: "Error refreshing service ATI Repository (http://www.ati.com/suse/11.2):" How is it that this repository entry survived the upgrade install? Ok, forget that, how do I get rid of this when I can't get it to display in the list of repositories I have?
What is even worse, I don't have ATI drivers on this system (I had uninstalled them a year ago, pulled in the NVidea, esw, etc.) as I had put an NVidea adapter card in, in place of the ATI built in (on the MOBO). Somehow that dropping of the repository didn't work, and now I have this thing in limbo? ps. I can't figure out what string to search in my file system or I'd have deleted the sucker last night during the install manual reboot.
View 9 Replies
View Related
Sep 7, 2010
In the comments section of this blog, the commenter "Pratik" claims that you can edit a running bash script, without killing it, and have the changes picked up by the running script. He claims you can do this by editing files in /proc. Now, I know how to find the /proc folder that contains the data on the running process, Code: cd /proc/`pgrep process_name` But I can't figure out what I should do if I want to edit a running bash script.
View 6 Replies
View Related
Dec 21, 2010
i have recently started a bit of sh coding. i was trying out sm commands from an sh file.
#!/bin/bash
txt1="top > temp.txt"
eval $txt1
[code]....
View 14 Replies
View Related
Jun 28, 2011
I was looking into a shell script which had a line "kill -0 [pid]" , I would like to know what the -0 flag does as i found it is not killing the particular [pid] process.
View 2 Replies
View Related
May 2, 2010
as the tags suggest, i'd like a fresh install of linux using grub2, and partition my harddrive
View 3 Replies
View Related
May 9, 2010
I haveing a big problem atm (just after to upgrade to 10.04). I have a simply and easy script that sent a halt command to every KVM virtual machine actually running into the server. this script is/and was) palced as a init-rc script in rc0/rc1 and rc6 lvls. Just after to upgrade, I have noticed that this script is executed but the system ignore the time that it require to finish (giving time to correctly stop a single virtual machine). Aftert 5 second it start sending SIG-TERM and SIGN-KILL to any currect process and then reboot/halt.
I have just done a new script using upstart and I got just the same result. What is happending? why is the waiting the init secuence for a valid/or_not termination of any init script. I am so sorry for this crap english I have never study this language so I try to do my best anytime I speak it (or try ti..).
View 9 Replies
View Related
Dec 22, 2010
If I should have put this in the beginners forum, I'm new to Debian but not to linux having used Slackware for some years. My problem is a kernal thing I think so probably best posted here.
I'm trying Debian because of the belief that I can use the Edinburgh Speech Software easier for my project work, also I wanted to use xen if possible. Having installed Debian Lenny amd64, the sound wasn't working on the machine but after installing the bpo the sound worked. The next thing to do was to try to install xen. Following an install of xen, the sound no longer works in the xen image, though I can still boot into the bpo kernel and get sound alright. When I boot into any kernel now I get a kernel failure problem just after I have logged in (Your system had a kernel failure),, though I can still go on with things - this happens whichever kernel I try to use. However the kernel which is last in the list I have pasted below (Debian GNU/Linux, kernel 2.6.26-1-xen-amd64), will not run at all and complains so:
Error 13: Invalid or unsupported executable format
On boot with all kernels I also get the message: Failed to read splash image ((hd0,0)//grub/splash.xpm.gz), which I didn't get before the xen installation. Something I thought to try was to install lenny again, then install the xen parts and then after this install thb bpo upgrade, but I am thinking this will not particularly work - if I did this and ended up with a working bpo kernel/boot, would this boot option include the xen functionality or not?
[Code]...
View 1 Replies
View Related
May 22, 2011
What's the best procedure to kill a desktop window from the command line? I'm having the problem on a FC 12-64 machine that using the File Browser window locks up most of the desktop. This might be software problem or it could be due to a defective mouse. I haven't had time to see if other windows cause the same problem. To do that, I'd like to kill the File Browser window.
The only windows that work are terminal windows. So I tried using the command line from a terminal to kill the file browser. When I do a kill -9 on the process involving nautilus, the process dies, the File browser window flickers off and back on, and then a new process involving nautilus appears in the list displayed by ps -ef. Is there a way to kill the File Browser window and make it stay dead?
View 4 Replies
View Related
Sep 8, 2011
Our Fedora 15 linux box have the following requirements:
1. Runlevel 3
1. Autologin as root for convenience
2. Run Xorg
3. Run xterm on display :0.0
4. Lauch our program on display :0.0
So we simply put step 2 ~ step 4 in the .bash_profile of root user:
# .bash_profile
if [ -f "/.bahsrc ]; then
.~/.bashrc
fi
export DISPLAY=:0.0
Xorg &
sleep 3 # for some reason, we need this three seconds to make sure that xterm start up successfully
xterm &
The problem is, if I issue "kill xterm", it flashes out some messages disappearing so quick that I can't even read, and then leave me with a black screen with a cross cursor at the center. The system seems to be crashed, even the numlock doesn't work. Since we execute xterm & during logging in, now I can crash my system simply by pressing ctrl + C ! That's disaster!
View 1 Replies
View Related
Aug 3, 2010
I have a Dell Precision M6400 laptop with an Intel Core2 Duo 2.8 GHz processor.I have set Power Management to performance when on AC power and have also written a script that calls cpufreq-set to set the lower and upper limits to 2.80 GHz (cpufreq-info output below).However, sometimes when doing some heavy work the frequency suddenly gets reduced to 1.60 GHz on both cores and I cannot set them back to 2.80 GHz using the script (cpufreq-set says errors occurred). Performance is then totally gone and I have to reboot. The same script then works fine after a reboot.What is setting the lower limit back down to 1.60 GHz even though I set it to 2.80 GHz using my script? How can I stop/configure this or prevent it from happening?
View 1 Replies
View Related
May 10, 2010
I have written a Linux kernel module (in Linux 2.4, Red Hat 9) which does the followings: It takes srcIP, sourceport, destIP, destport and loadvalue as command line arguments. If configured load value is greater than 1, it creates different channels (i.e. No of UDP channels created equals to configured load value), assign different source port and destination port to different channels and send UDP datagram in different channels. Say for example the configured parameters are as follows srcIP=10.17.17.43 destIP= 10.17.17.44 sourceport=10000 destport= 20000 loadvalue=2.
Then it creates two UDP different channels and transmits UDP packets (in every 20 milliseconds) to destination IP address (i.e., 10.17.17.44) with source port 10000, destination port 20000 in one channel and source port 10002, destination port 20000 in another channel. When I configure to pass ?loadvalue=500? and run the module, I get the below kernel panic message in system log file (i.e., var/log/messages) 0>Kernel panic: Aiee, killing interrupt handler! In interrupt handler - not syncing. Running the same linux kernel module ,in 1000 loadvalue, I get this message, eth0: Out-of-sync dirty pointer, 49937 vs. 49954 in text console. I am unable to catch the root cause of these problems and how will I solve these?
View 1 Replies
View Related
Jun 21, 2010
I am trying to kill child process without killing the parent and seem to be having issues doing so. I have tried quite a few different commands and the end result is either killing all of them including the parent or not killing them at all.
View 1 Replies
View Related
Aug 23, 2010
I tried to stop mysqld deamon. It failed
Code:
[zabbix@CDCTGIMCLSA ~]$ sudo /etc/init.d/mysqld stop
Stopping MySQL: [FAILED]
[code]....
View 14 Replies
View Related
Mar 9, 2010
Is there any command in Linux to kill a socket connection WITHOUT killing its parent application? For example, I have streaming server with several connected users and I want to close socket connection to one of them?
View 1 Replies
View Related