2
votes
0answers
19 views

Cleaner way to restart daemontools services

In our product, we had created services using daemontools. One of my service looks like this, /service/test/run /service/test/log/run (has multilog command to log into ./main dir) ...
2
votes
2answers
694 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
97 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
104 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 ...
0
votes
0answers
69 views

rsyncd post-xfer exec command as daemon

I would like to use rsyncd server to launch a daemon as post-xfer exec command after the synchronization: The problem is that even if the daemon is correctly launched, rsync is still hanging, and ...
-1
votes
2answers
82 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
838 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: ...
0
votes
2answers
2k 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
2answers
1k 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
2answers
289 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 ...
1
vote
1answer
2k 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
123 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 ...
0
votes
2answers
1k 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 ...
0
votes
1answer
125 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
2answers
346 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 ...
0
votes
2answers
268 views

Setting up rsync over the internet. How should I define it?

I need to sync two Linux servers in remote locations. To do so, I've decided to use rsync. I've set the rsync to run on the target as a daemon, and the actual syncing command is ran from the source. ...
-1
votes
3answers
266 views

Automatically power down home GNU/Linux server after 30 minutes of inactivity [closed]

I'd like my home GNU/Linux server to power down after 30 minutes of inactivity. For "activity", I'm thinking any new [CUPS] print jobs any requests to a locally running Apache server any activity ...
2
votes
0answers
105 views

Windirstat equivalent daemon for Linux server? [closed]

Is there a daemon-type application for Linux, that runs in the background, periodically maintaining a windirstat-type picture of the file system? Ideally it would have its own web interface, but I ...
2
votes
1answer
101 views

telling runit to pick up a new service immediately

As a happy user of runit - I am curious if it is possible to send a signal to the main process (or similar) telling it to look now at the service directory? the current behaviour is < 5 seconds ...
4
votes
1answer
2k views

Equivalent for the “pid file” stanza in newer versions of upstart

I'd like to be able to use upstart to manage daemons where I don't have complete control over the forking behaviour. The "pid" stanza is removed as of version 0.3.9, so I can't point it at a pid file. ...
-2
votes
1answer
53 views

logging in daemon process

I'm new to all this stuff, so please forgive if a question is stupid. I'm running a script as daemon, in order to debug it I'm trying to dump logs in file, but no file is created. And if I run script ...
1
vote
2answers
740 views

Running JBoss 6 with Runit / daemontools or other process supervision framework

I'm tying to use runit to daemonize JBoss. I use the /opt/jboss-6.1.0.Final/bin/run.sh script to start the server. When I do so from the comandline, JBoss does not detach (which is what we want), ...
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 ...
0
votes
1answer
668 views

start-stop-daemon checking for existing running processq

I'm starting a python script that i've created using start-stop-daemon. It works perfectly in all cases, except when I've forgotten that I've already started it. It creates a new process, but is ...
1
vote
2answers
602 views

How to Start Linux Daemon program at boot up

I am confused on how to start my Daemon C program at boot-up. The program runs as a Daemon OK when I satrt it from command shell, but now I want it to start up every time at boot-up. I have searched ...
6
votes
2answers
1k views

Call to daemon in a /etc/init.d script is blocking, not running in background

I have a Perl script that I want to daemonize. Basically this perl script will read a directory every 30 seconds, read the files that it finds and then process the data. To keep it simple here ...
2
votes
3answers
350 views

Linux: user defined daemons/services

I'm looking for a framework/library/environment so an ordinary user can set up it's own server processes. These processes should run under his uid as any other user process. However the definition of ...
3
votes
2answers
3k views

init script that logs output of the script

How can this be done? I know it's pretty simple and includes appending something like & or &> to the actual command that starts the init script. But, what is the best approach and how can ...
1
vote
2answers
368 views

Automatically restart simple Linux daemon (polipo) when it dies

I have a polipo proxy running on Ubuntu. It's set to start automatically on boot, but occasionally it just dies. What's the simplest way to have it automatically restarted whenever it exits ...
0
votes
1answer
147 views

How can I run terminal commands at startup on a Mac OSX server?

For example, when the server boots I need to start Tomcat, and I need to start an Android emulator, and then issue some commands to it. These are on the path already. I'm familiar with Linux and ...
0
votes
1answer
349 views

Running Celery as a daemon

I'm testing Celery with RabbitMQ on Ubuntu11.04 on a python project that is not a django project. I have my celeryconfig.py and my test.py file in /mypath/myproject/. My /etc/default/celeryd looks ...
2
votes
2answers
654 views

Ubuntu Daemon Best Practices?

I have a RingoJS webserver (runs atop Jetty) that is part a an Apache reverse proxy setup. I would like multiple Ringo processes to run autonomously in the background, startup automatically on ...
3
votes
1answer
1k views

Daemon can't be started from fabric script or on boot - only interactively

I have a daemon script in /etc/init.d that performs some background packet logging using the tcpdump command. The script starts up fine using an interactive shell using sudo /etc/init.d/packetlog ...
2
votes
1answer
863 views

Trouble running Python Celery as a daemon

I have Celery setup and running as a daemon on a Ubuntu EC2 instance. This morning I updated some of the tasks and tried to restart Celery and it wasn't working. After working at it a bit I found: ...
1
vote
3answers
1k views

SSH dial home daemon or automatic tunneler?

I know a number of vendors that sell network/server appliances, that have a support button, that once pressed, setup an SSH support tunnel back to the vendors main servers so the support technician ...
1
vote
3answers
2k views

Working around the stale pidfile problem after hard restart kills my daemon

I'm using Red Hat Linux (RHEL5) on a (VMWare) VM. I've written a daemon which should stay running all the time and automatically run on boot. Last night the VM host had an unrecoverable hardware ...
3
votes
5answers
399 views

Source code for Linux utilities and daemons

Where can I find the source code for Linux utilities and daemons. Basically I want to know the repository of source codes other than the Linux kernel.
2
votes
2answers
2k views

Deploy Jetty as port 80 daemon on Linux

I'm curious what techniques you Linux admin gods are using to manage your Jetty deployments. I come from a Windows Server background so I'm still getting used to all of this. I've been looking for a ...
3
votes
4answers
3k views

How do I find out the process id of the backgrounded process?

I've got a command (program) that I'd like to run with nohup and background it. Like nohup command > logfile.txt & How do I find out the process ID? I would like to be able to write the ...
3
votes
3answers
115 views

Linux directory conventions for custom service

I'm writing a custom application that will be run as a service/daemon. According to convention, the binaries for it should be in /opt/appname. However, where do I put files such as: Config files ...
2
votes
2answers
401 views

How to tell if an ssh ControlMaster connection is in use

I'd like to use ssh's ControlMaster feature to share connections for speed increases. I'm trying to script it so that I can start/restart/stop a number of connections to different hosts. How can I ...
1
vote
1answer
155 views

Searching for a lfd tutorial [closed]

I just got me a new centos server, and fould out it's running lfd. It looks nice, but I need to configure it. It keeps warning me about mysql running, or myself logging in via ssh, and so on. I ...
1
vote
3answers
2k views

How to install Mono XSP as a daemon on Debian?

I want XSP to run on my virtual Debian 5 as a daemon. How can I do that? I tried next: $ sudo cp /etc/init.d/skeleton /etc/init.d/xsp updated the script properly: ...
3
votes
3answers
1k views

How can I drop privileges and still clean up my pid file in /var/run?

I have a daemon called foo. My init script /etc/init.d/foo starts the foo daemon and stores its pidfile in /var/run/foo.pid, which seems to be the standard place. Because /etc/init.d/foo must be run ...
1
vote
2answers
418 views

Proper way to manage Daemons, Debian/Ubuntu Linux

What is the best way? Or at least... an easily managed one? I am routinely creating shell and python scripts that need to always be running in the background. Any recommendations on packages that ...
2
votes
2answers
3k views

Does NTP daemon set the host timezone?

If I am using NTP daemon or ntpdate command, do I need to worry about changing the timezone? Should I re-configure the timezone using cron job to guarantee the accuracy of the server time? I am ...
5
votes
4answers
1k views

No coredumps for daemons started at boot by init.d on Ubuntu

How can I get daemons started by init.d at boot to coredump on Ubuntu? This is what I have done so far... echo "ulimit -c unlimited" >> /etc/profile mkdir /corefiles/ chmod 777 /corefiles/ echo ...
5
votes
5answers
537 views

How to daemonize a shell task?

How can I run a console command (like cp or tar, for example) without needing to keep an open SSH?
2
votes
2answers
2k views

How to set system environment variables for Linux services?

I need to setup environment variables for application servers. For example: ORACLE_HOME, ORACLE_SID, JAVA_OPTS, CATALINA_BASE. I know how to set system environment variables in Windows, but no ideas ...
1
vote
1answer
222 views

What's better for this particular task: a daemon or a CRON job with a simple program?

I have a program that copies files from a network drive to a specific location per user. It needs to do this every 12 hours and it needs to start when the system (redhat linux) starts. I was thinking ...