CentOS 5 :: Create An Unkillable Process?
Dec 27, 2009
I have a process that seems to be unexpectadly quitting. Checking the messages log I could not find anything out of the ordinary. Would anyone here know how to make a process unkillable or lock a process somehow? I read information on doing this by making a looped iso, however the process im starting requires to be able to read/write to the files in the iso so this is not going to work. For now I just niced the process to top priority but I dont really think that will work. This process is a voice server so I dont want people getting discouraged that the server will not stay up and decide not to use the free service im offering.
Would anyone else have any insight as to what I can do? Im not new to linux but im not familiar enough with how every command is used, so if at all possible please give me the commands that need to be executed.
View 5 Replies
ADVERTISEMENT
Sep 24, 2010
I had an interview , where the interviewer asked me the question "How to create and call a process in unix". I answered that we can use the command
FORK()/ CLONE() to create a process.
But I didn't have the answer for the second question, how to call a process.
View 2 Replies
View Related
Jan 11, 2010
How to create a c program for an Orphan Process ?
View 5 Replies
View Related
May 27, 2010
I am playing around with RH for the first time. I have two applications which insist on using names for network ranges - so they need /etc/networks. I created one on the RH box as suggested via google but the apps still cant see the names (basically they are not reading /etc/networks). What is the correct process to create network names on RH? Basically the equivalent of solaris /etc/networks?
View 4 Replies
View Related
Mar 12, 2010
I have a project that I'm working on now that is using Ubuntu 8.04LTS to create a reverse SSH proxy for a telnet process. We have the box logging in with RSA keys so that it can automatically connect to the SSH host on our end. We are using autossh to keep the connection up and running.
We have rolled out 3 of these and they are working very well. We ghosted the original, changed the hostname, changed the IP info, and regenerated the SSH keys. Now I need to clone 35 more. I want to try to do this as efficiently as possible and can script the changes in the hostname, IP, ect.
Can I batch create RSA keypairs on my workstation and then copy them over as a part of the batch? My current other option is to login to each of them and generate the pair. I would like to just install the drive and ship it and not even have to boot it up.
View 3 Replies
View Related
Jun 7, 2011
Code:
root@sok-HP-ProBook-4520s:/usr/local/etc# motion
[0] Processing thread 0 - config file /usr/local/etc/motion.conf
[0] Motion 3.2.12 Started
[0] Motion going to daemon mode
[0] Exit motion, cannot create process id file (pid file) /var/run/motion/motion.pid:
View 4 Replies
View Related
Mar 28, 2009
I am trying to install CentOS 5.2 on an HP rp5700 desktop unit. These units were originally sold as a Point of Sales unit I believe, but HP also markets it as a high life cycle server for SMB market.I tried to load CentOS on this unit via CD (created from downloaded ISO of course). It presents the initial CentOS banner page and waits for the obligatory "enter" to continue. It begins the boot process up to discovering the PCI stuff and just locks up, no response. I have to power down to restart.Since this does not even get to the point of installing. I am at a loss what to do next. Has anyone had a similar issue with other PCs.The boot stops at the lineACPI: PCI Root Bridge [PCI0] (0000:00)
View 3 Replies
View Related
Mar 11, 2010
There are two host agent process ( hprsmha -WD and RSMHA ) running on my SLES 10 server suddenly hangs which is critical for my daily scheduled backup jobs.I want to create a script which checks for the 2 process and restart it automatically.so i can put it to daily cron job.My knowledge with scripting is so poor. Following are the commands i am running manually to stop and start the process.
cd /etc/init.d
./hprmsha stop
./hprsmha_wd stop
./hprsmha_wd start
./hprsmha start
View 4 Replies
View Related
Aug 10, 2010
I get the error: Could not start process Unable to create io-slave: klauncher said: Unknown protocol 'magnet'.
View 3 Replies
View Related
May 26, 2010
First post from a very new Linux user....I am trying to create a BASH script that will allow user to provide multiple directory names, Checks if the directory exists and if not create the directory.
I am using the following code:
Which works fine as long as the user enters a single directory name. How can I modify this so it will process all directory names user enters on the read response?
View 5 Replies
View Related
Jul 7, 2010
1. I need help to create a interface to run software.2. The software is running at the back
View 4 Replies
View Related
Aug 14, 2009
I'm trying to create a CentOS based liveCD that mounts a NFS share and executes one script there. The NFS never mounts altough while logged I can mount it with the very same command that I use in the KS.
In the %post I have :
%post --log=/tmp/post.log --erroronfail
mkdir /mnt/nfs
mount -o nolock 10.23.1.1:/csc/RemoteHome /mnt/nfs
I added the --log in order to debug, but nothing is written in /tmp/post.log. I tried redirection on the mount command with >> /tmp/debug.log but this is not written. Maybe during the post sequence /tmp is RO ? Anyway, I tried with ifup lo, service portmap start in the %post, but doesnt change (I even have a service : command not found in the live cd creator output).
Here is the remainder of the KS :
lang en_US.UTF-8
keyboard us
timezone US/Eastern
[Code]...
View 10 Replies
View Related
Jan 1, 2010
How can i add a PPPOE connection witch connect automatically on system start up in text mode in centos 5.4
View 3 Replies
View Related
Feb 22, 2011
Ive installed centos freebsd and mandriva but i want to manage grub from my centos and y create successfully a boot load for freebds. But for mandriva it just doesnt work... so how can a create a boot load entry for mandriva from grub centos?
View 1 Replies
View Related
Jun 16, 2010
I installed the latest CentOS 5.5 in my PC. I added some public domain projects on it. Now how can I make another boot-able CentOS iso file with all the new projects I just added? In the other words, I try to create a boot-able CD with the CentOS and all the projects on it.
View 1 Replies
View Related
Apr 6, 2010
How can I create/boot CentOs 5.3 ram image?I'm looking to create a CentOs ram image that once booted will not access the hard drive.
View 3 Replies
View Related
Jul 22, 2011
I have a project needing ecdsa and ec support in Openssl. Unfortunatly the openssl in CentOS 5.6 Final are built without
this functionality. As my experience with CentOS are a little on the fresh side, I would like to know my options in this case.
How I can create key pair as ecdsa?
After I upgrade openssh until version 5.8p1, It's not work on command ssh-keygen -t ecdsa 256, I got feedback "unknown key type ecdsa
"...
What I have suppose to do? when I use openssl new update my server can't work properly again, so I decided to installation again.
View 1 Replies
View Related
Oct 3, 2010
Normally servers having multiple CPU's I need to found out, which CPU is used by a process. or else from the out put /proc/pid/stat how we can identify used CPU by the process
View 5 Replies
View Related
Jul 14, 2011
I started to use linux (CentOS 5) 1 week ago. And I took lot of imformation from this forum. Is it possible to install two program at same time?
Total download size: 67 M
Is this ok [y/N]: y
Downloading Packages:
jdk-6u24-linux-i586.rpm 19% [========-] 6.0 kB/s | 13 MB 153:51 ETA
It is so boring to wait and I have to wait there is nothing to do something else just centOs text.
View 8 Replies
View Related
Jun 14, 2009
This is a long shot but I'm looking for a way to assign an IP to a specific location or process. I'm running a server for a small indie game that I liked, I intend on running as many gameservers as possible from this server, however I hit a problem: The game limits servers to 4 per IP address, after this the servers no longer are able to connect to the main server and therefore be used. My server has enough IPs to run many gameservers, but I'm unable to work this out.
I need to assign either an IP address to a process or folder, right now I have it set up like so: (assuming 1.1.1.1 = server IP)
/gameservers/server1/program < assigned to 1.1.1.1
/gameservers/server2/program < assigned to 1.1.1.1
/gameservers/server3/program < assigned to 1.1.1.1
/gameservers/server4/program < assigned to 1.1.1.1
[Code]....
I do not have access to modifying the core program, it runs in Java. How would I go about doing this, if indeed possible? I need to either apply the selected IP to a folder or process without changing the actual program.
View 1 Replies
View Related
Mar 19, 2010
I'm trying to check how much ram memmory and CPU is a particular process consuming, i have checked free -m and top but is not esay to undesrtand the output from CPU
What i need is to check the consuming for a particular process; with free -m i'm able to see only the available space of memmry and i want to know how much is consuming a particular process, the same with 'top'
It's hard ot understan the output from top, to many columns and MAY process, not easy to check the process i want to monitor
View 5 Replies
View Related
May 13, 2010
I start a QEMU command, but pgrep can't found the process.
Host> ps aux | grep qemu-system-mips
With the full name, nothing can be found.
View 1 Replies
View Related
Apr 30, 2011
It's my first post and think not last here. I'm new to Linux system ( had a bit of unix programming at school but forgot already ). Please, take a good care of nooby me Now, let's get to the point
I have CentOS installed on one of my machnce, its my PHP development server. I also wanted to run a Minecraft server on it. I would like to skip autostart with init.d thing and be able to control it's run manually, but remotely. Thing is, when i log via putty to server and start server the server output is in terminal. When I close puty, ran application closes also. So I need to have putty window ran all the time.
So, since many programs can be run as background task (like httpd). Is there a way to log via putty. Start application and send it to process... log out of putty ( and application doesn't shut down with putty)?
Also, would be nice if I was possible to log to putty and switch to that application, so i could see server output, info and Issue commands. Basically, I want to start a service and be able to manage it via putty. and not close it when i terminate putty.
PS: I have installed Windows on CentOS server. Is there a way to issue a system start without loading whole GUI thing? When I was installing it I thought it would be easier to manage it with GUI, but now loading it only eats system resources and i unplugged monitor and mouse nad manage it only from Putty
View 9 Replies
View Related
Jun 20, 2010
When I add the line (sleep 5 ) & in the script then the "while read" loop does not read all lines from the file, but only prints the first line.But when I remove the ( sleep 5 ) & from the script, then the script prints all lines as defined in the file.And how to solve the problem? I want to create a new process (for which the sleep is just an example) in the while loop:
$ more test
#!/bin/ksh
while read -r line ; do
[code]....
View 1 Replies
View Related
Jul 10, 2011
I have tried top and PS command but i am not able to find the RAM used by each process.top command says that 240MB RAM used but the Memory shows 0% for all the processes, same with ps. i want to know which process consumes all 240MB RAM.Is there any command which / script which can sort the running process in oder of increasing RAM usage so that i can see. Also i find it very hard to read bytes and KB. Is there any to way to chnage those units to MB
View 2 Replies
View Related
Mar 2, 2009
Is there a way of throttling a process resources, something akin to limits but for processes not users?ie I want processX to be restricted in the amount of memory it can consume. For process cpu I guess I can simply nice the process, but total memory consumption is my primary concern.
View 1 Replies
View Related
Mar 22, 2009
My centos machine suddenly stuck, the hdd LED flashes constantly, and the system reacts to all my operations very slow. I even cannot log in to a native terminal (always timeout). I had no choice, I pressed the power button. Reboot once failed. The system failed to find mount points.
I inserted the installation disk into computer and entered rescue mode. But I found everything was there. And another reboot brought up the system. I wonder what was the process that stuck my system.
View 4 Replies
View Related
Feb 12, 2011
I'm running CentOS-plus V5.5.CDs automount fine, but DVDs don't. I can, however, mount DVDs manually.I have scoured the web without seeing a solution. Its also clear that the software or process used by the OS to automount a DVD, has changed in the last few CentOS versions. So now I would like to ask:,In V5.5, what is the current process or software used by the OS for automatically mounting media such as a CD or DVD?What configuration files are involved that allow a CD to be mounted, and what entry(ies) would be needed to automount a DVD?
View 13 Replies
View Related
Apr 30, 2011
Linux 2.6.18-238.9.1.el5
Apache 2.2.3
MySql 5.0.77
PHP 5.3.3
Samba 3.5.4-0.70.el5_6.1
Problem: my server eats up all the memory in the box after a few days. My guess is it has something to do with these processes:
[Code]...
View 7 Replies
View Related
Jun 11, 2011
i have 2 linux centos server Linux version 2.6.18-238.9.1.el5 icant find the problem... server1: you can see mysql runs only single proc but its not possible bcause this is webserver
[Code]...
server2: as you can see there are many mysql
[Code]...
View 3 Replies
View Related