The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
40 views

Launchd job runs but then quits immediately

I wish to load and run a Lisp program in CCL in the background automatically when my Mac (OS 10.9) boots. I have a launchd plist that I've saved to /Library/LaunchDaemons, <?xml version="1.0" ...
0
votes
0answers
25 views

call init.d script restart from cron - leaves defunct process, cron-invoked script never finishes

We wrote a quick ruby script called monitor_and_restart_solr.rb to restart a badly behaving Solr (java) process, but it appears to get stuck when we call the /etc/init.d/solr restart The script we ...
2
votes
3answers
36 views

Daemons on a web server - best practices [duplicate]

This might be an obvious thing to seasoned Ops but, please, bear with me on this one (I'm a dev with the side effect of having to manage our servers too). At the moment, one of several servers (load ...
1
vote
2answers
142 views

Why does NTP daemon keep listening on UDP6?

I have a clean Debian 7 installation, and I manually entered the following lines in /etc/ntp.conf: interface ignore wildcard interface listen <local_nic_ip> Hoping that NTP will no longer ...
0
votes
0answers
45 views

hald (HAL daemon) behavior analysis

We were looking at the behavior of HAL daemon on a Linux host (Ubuntu 12.04.2 LTS 64-bit). We looked at both its syslog and system calls (using strace). According to the documentation, HAL daemon ...
4
votes
1answer
89 views

Safely providing passwords to a linux daemon

I have a linux daemon that accesses some services (db etc). It needs some passwords for this. What would be the best way to give the passwords to the daemon in a secure manner? I currently store the ...
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 ...
1
vote
0answers
22 views

Upstart - make “reload” behave like “restart”

I have a daemon process that doesn't respond to SIGHUP sent when running reload. It runs under an unprivileged user, and I can't restart it without sudo privileges. Is there a way to make reload to ...
0
votes
1answer
24 views

rhnsd daemon on Ubuntu

I just bought a dell server (to learn stuff) and i was asking our sysadmin some security questions. I just installed Ubuntu server and he gave me a long list of things to do for me to secure, check. ...
0
votes
0answers
46 views

Why is there no (Debian) init.d script for usbipd? Should I write my own?

I just installed the usbip package on my Debian Wheezy (7.1) . For some reason, it comes without an init.d script. Why is there no init.d script for it? Should I roll out my own? Or am I doing ...
0
votes
0answers
36 views

Java daemon: “…not allowed access to the window system right now.” on boot

I have a daemon (/Library/LaunchDaemons/...) configured to launch on boot. However, I get the following error: Nov 17 20:36:24 server.local java[28972]: This user is not allowed access to the window ...
1
vote
5answers
116 views

How to start process as a daemon?

I have created a service which consists of a web fronted (nginx), python runner glue handler (uwsgi) and my own python code (fetcher). I have made a script (deploy.sh) to start the difference ...
3
votes
1answer
146 views

nohup vs screen vs ? for manually starting daemon processes

When I need to start a background process on a low-importance server, I tend to use nohup: nohup ./server.sh & Most colleagues seem to prefer screen: screen -D -R mydaemon ./mydaemon.sh ^A ^D ...
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
0
votes
1answer
91 views

WSGIDaemonProcess for each application instance

I'm using Apache & mod_wsgi to deploy a django application on several servers. I've read in multiple places (including this: ...
0
votes
0answers
15 views

How to hide usb daemon messages?

I've got a Fedora 19 box on a Belkin KVM, sharing the devices with another machine. It works fine, except that when I switch from one machine to another, the Fedora box spits up a bunch of about 20 ...
-1
votes
2answers
64 views

Run php scripts in ubuntu as deamon one time and on every bootup [closed]

I have a simple question that I couldn't find an answer for on the web or on StackOverflow. I have two PHP scripts that I would like to run as daemon (not every x seconds/days). Now I want to run ...
0
votes
1answer
121 views

ConfigServer CSF and iptables config

I'm aware there is a /etc/sysconfig/iptables file, with rules for iptables (and what's the effective difference with /etc/sysconfig/iptables-config?). I installed CSF & LFD. You can configure ...
0
votes
2answers
144 views

How to stop webrick server after calling it as a daemon (-d option)

I have run Webrick server (Redmine) using this command: ruby script/rails server webrick -e production -d. Now I would like to stop the server, but sending a SIGTERM signal or calling kill doesn't ...
0
votes
2answers
753 views

How to check syslog.d is running

My syslog is running correctly but out of curiosity how to check that syslog daemon is running. Is there anyway I could check the status like apache root@server1:/etc# /etc/init.d/apache2 status ...
1
vote
2answers
1k views

runit - unable to open supervise/ok: file does not exist

I'm trying to figure out why runit will not boot or give me the status for the managed applications. Running on Ubuntu 12.04. I created /service, /etc/sv/myapp (with a run script, a config file, a ...
1
vote
2answers
39 views

What is the maximum allowable startup time for a daemon startup script?

What is the maximum allowable startup time for a daemon startup script? I do have a tomcat server that takes a lot of time to start and I could include logic inside the startup script to check if the ...
0
votes
1answer
58 views

How can I have a deamon invoke scripts as another user?

I am configuring a server connected to an UPS. The UPS is managed via apcupsd and it calls some scripts when there is a power outage and when the situation goes back to normal. The server is running ...
1
vote
1answer
269 views

How to configure Python Script to run as a daemon

I have a couple webservers sitting behind a loadbalancer, and i found "watcher.py" here: https://github.com/splitbrain/Watcher I chose this script for several reasons: recursive through folders, lots ...
0
votes
1answer
481 views

Cannot start NFS daemon

I'm trying to set up a NFS share but I cant start NFS service: $ service nfs start Starting NFS services: [ OK ] Starting NFS daemon: ...
1
vote
1answer
845 views

Running Jenkins standalone vs within Tomcat

What things should be considered when deciding between running Jenkins standalone or within Tomcat? We would prefer to not have to use Tomcat because there's no other applications on this server ...
3
votes
2answers
184 views

Should a foreground program invoked by a daemon split logging between stderr and stdout based on severity levels?

Usually log messages are written to stderr. I'm wondering if it is a good idea/practice to split log messages so that errors and warnings go to stderr while debug/informational/notice messages go to ...
0
votes
1answer
100 views

How can I run git daemon using launchd (on demand, inited style)?

I am trying to run git daemon using launchd (on demand, inited style). But git clone git clone git://127.0.0.1/testrepo fails with Cloning into 'testrepo'... fatal: unable to connect to 127.0.0.1 ...
-1
votes
1answer
169 views

Running services from GNU Screen

There are quite a lot precautions one is to take when running a process as a daemon. It seems to me that running it inside GNU Screen is a viable alternative, since it guarantees to run the process ...
-2
votes
1answer
20 views

how to run postfix by hand

I compiled postfix 2.9.5 with mysql backend.You know postfix daemons are ran with postfix, So i don't know main postfix daemon to run by hand. What's main daemon ?
0
votes
1answer
837 views

What is the mdbs_daemon, and why is it listening on port 800 on my server?

While trying to resolve a ports issue on a staging server, I happened to run an nmap on our production server, and found that port 800 was open: 800/tcp open mdbs_daemon I have no idea what ...
0
votes
2answers
1k views

VSFTPd 3.0.2 on Ubuntu 12.04 Init File

I installed the VSFTPd 3.0.2 on Ubuntu 12.04 following this commands: $ wget https://security.appspot.com/downloads/vsftpd-3.0.2.tar.gz $ tar xzvf vsftpd-3.0.2.tar.gz $ cd vsftpd-3.0.2 $ make -j8 ...
1
vote
0answers
387 views

udisks-daemon eating up all my memory

I'm operating a little storage server on debian, over the past months I've noticed the process udisks-daemon eating up almost all available memory. Is this just really aggressive caching or a memory ...
1
vote
2answers
772 views

start-stop-daemon saves wrong PID

$ ps aux | grep svn root **4458** ... /usr/bin/svnserve -d -r /var/svn manuel 4466 ... grep --color=auto svn $ sudo kill **4458** $ sudo rm /var/run/svnserve.pid $ sudo start-stop-daemon ...
0
votes
4answers
268 views

Daemon process exiting when shell closes

I have a script which starts a daemon process and then sleeps for 20 seconds. If I run the script on SLES11 SP1 or RHEL6 then after the script exits the process is still running. If I run the script ...
0
votes
2answers
219 views

keep linux subsystem service up and running forever

I have created a subsystem file which runs java program I have created. The subsystem file resides in /etc/init.d and allows me to stop and start the service with a consistent interface (start and ...
2
votes
1answer
943 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 ...
1
vote
1answer
905 views

How can I generate a command for start-stop-daemon that will kill the process if it doesn't term during a timeout period?

I need to run a start-stop-daemon for a redis instance and I want it to send a SIGTERM and if the redis instance doesn't quit i would like it to force a quit. The start-stop-daemon configuration says ...
1
vote
1answer
115 views

Bash - Program is writing directly to terminal

Valve's dedicated server for the Source Engine (srcds_run) on Linux writes directly to the terminal, not stdout. I want to run it as an /etc/init.d daemon on Debian 6, and I'd like to redirect/capture ...
1
vote
2answers
486 views

Debian startup - start a daemon after postgresql

i'm configuring my debian server and i don't manage to start a daemon correctly. In order to start, my daemon has to find the Postgresql socket (located at /var/run/postgresql/.s.PGSQL.5432), but ...
1
vote
1answer
46 views

Unix to execute program on WAN IP update

How do I access the current IP address? Is there a way to execute a program every time it changes? I want to make a program that whenever my IP changes, it will use the Amazon Route 53 API and update ...
2
votes
1answer
145 views

How to use monit to make sure only one instance of process is running

I have ruby daemons running. Once in a while we'll accidentally start up a second instance of it, which causes race conditions. Can I use Monit to detect if multiple instances of 'my_ruby_daemon' is ...
0
votes
2answers
905 views

Creating gid/uid for your custom created daemon?

Assume you have created a daemon (custom written) and want to create new uid/gid for this program. Are there any standard practices? e.g. Should the uid and gid be the same? Should the id start ...
1
vote
2answers
371 views

How does rsync --daemon know which way it is being run?

I am wanting to run rsync over an SSL/TLS encrypted connection. It does not do this directly so I am exploring options. The stunnel program looks promising, although more complicated than designed ...
0
votes
1answer
488 views

Run mysqld under a different user (linux)

I've been trying to start mysqld under a different user as well as with a different data path. I've done so by modifing the my.cnf file as follows: [mysqld] datadir=/bob/database ...
0
votes
1answer
116 views

template / platform for linux shell scripts to init.d scripts

So I got a number of small cronjobs, that needs to run more frequent then a minute. So what I usually do is - create shell script with a while loop and sleep statements in it. And then I run it in a ...
0
votes
1answer
120 views

Windows Azure openSUSE: rcnetwork not starting

I have a Linux VM in Azure, created from their default image. My problem is simply that the init script network doesn't look like to start, so dependent services (apache, postfix...) won't start. If ...
0
votes
2answers
271 views

Does exist a linux service for watching/checking (and restarting, i.e. for a segfault) running daemons? [closed]

I'm searching for a linux service that watches/checks every n seconds a list of running processes/daemons for detecting (and noticing+restarting the process) any issues (like a segmentation fault in ...
2
votes
2answers
476 views

Execute specific bash script on Gentoo Linux startup

I own a VDS running Gentoo Linux and I am curious about how to execute specific bash script at startup of my VDS. I just want to startup apache2 at boot time and run two thin instances.
0
votes
1answer
479 views

Why daemon does not run

My daemon used to run under 10.04, but no longer starts automatically on 12.04. If I start it manually /etc/init.d/sqlexecd start, it works. Here is the output of uname -a Linux steamboy ...