3
votes
1answer
55 views

daemon function isn't working in CentOS 6.4

I'm trying to daemonize a process under a different user. In my init.d, I have a service which looks a little bit like this: ... start() { echo "Starting mydaemon..." daemon --user someuser ...
2
votes
1answer
65 views

How can I install daemon on a CentOS box?

I'm basically looking for the equivalent of : sudo apt-get install daemon From Debian I'm trying to configure a Solr daemon as outlined here http://stackoverflow.com/a/2150888/443779
2
votes
1answer
929 views

Run Python script at startup using upstart

I'm trying to create an upstart script to run a python script on startup. In theory it looks simple enough but I just can't seem to get it to work. I'm using a skeleton script I found here and ...
0
votes
1answer
196 views

How to run a service as daemon in Centos 5

In Ubuntu, I use -D to run a service as daemon. I wonder there is any similar command to do this in Centos.
1
vote
1answer
481 views

Monitoring on java daemon on centos

I have a java application which I run using yasjw tool as a daemon. I need to monitor it in case it goes down I need some kind of alert or even restart it. Is there any tool can help me do this on ...
0
votes
2answers
1k views

Force a process to use a particular cpu core? [duplicate]

Possible Duplicate: Is it possible to limit a Linux process so that it can only run on a particular core on a particular machine? I would like to know how can I bind a process to a ...
1
vote
1answer
1k views

Disable nginx, but keep it installed

I have nginx installed on CentOS and now I need it to be disabled (including on reboot), but keep it installed for further use. Should I only remove /etc/init.d/nginx file? Or is there more graceful ...
2
votes
1answer
1k views

MySQL Eating CPU Usage (Urgent)

Recently, I purged the cache files for my website and now MySQL is eating up CPU up to 100%. It slowly grows from 10% to 100% within 5min and so the server crashes. Fortunately, I turned stopped the ...
1
vote
3answers
421 views

What, if anything, is safe to symlink in /var?

We have plenty of space on a different mounted device. Since the /var partition stays relatively static in terms of size (around 8-10GB because of big logs that we need), I'd be fairly happy to simply ...