The tag has no wiki summary.

learn more… | top users | synonyms

5
votes
3answers
6k views

Ways to set umask on Ubuntu for daemon processes

I have an http daemon server process (yaws) that I would like to have server write any new files with a umask of 002, so that another user in the same group can modify, move, or delete files created ...
5
votes
5answers
538 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?
3
votes
4answers
528 views

Recommendations for Monitoring services [closed]

I would like to install a monitoring services (Monit or others) on my web server and am looking for recommendation. I have no idea which is good, and what parameters which I should evaluate on, and ...
9
votes
5answers
28k views

console-kit-daemon - can it be stopped?

I have 60 instances of Console Kit daemon on Ubuntu 9.04 server installation. Is it safe to kill those or stop these processes. They seem to be taking about 20% of RAM each(see on htop).
7
votes
1answer
10k views

Init script does not create a PID file

I need to create an init script for an IRC logger. I copied /etc/init.d/skeleton. I filled in the configuration section to fit my needs and I also had to add --background to the start daemon command ...
0
votes
3answers
2k views

Updating start-stop-daemon on Debian

I have Debian Lenny box, where I plan to extensively use start-stop-daemon. The trouble is, the standard Debian start-stop-daemon doesn't support output redirection: --stdout and --stderr keys, which ...
0
votes
2answers
1k views

How much RAM and CPU do various IRC Daemons take up?

I'm looking to install an IRC Daemon, as well as services (if they are not included in the IRC daemon) onto a virtual server with a variable amount of memory allocation, and I was wondering about how ...
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
545 views

Automatic printing of files written in specific directory

I have a legacy application that for printing purposes, sends its output to a file in different directories. What's written into directory X is printed in printer X; what's written into directory Y is ...
1
vote
1answer
224 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 ...
3
votes
1answer
529 views

Script in /etc/init.d won't run on startup (Ubuntu 8.10)

I'm on Ubuntu 8.10 The script runs when called from the command line with sudo /etc/init.d/xbindkeys start. Here's how it looks: #! /bin/sh ...
0
votes
2answers
93 views

Is there freeware available to watch a series of FTP folders for changes

I am looking to run a (freeware if possible) service which scans a FTP server for changes, emailing certain recipients when certain folders have new files added. Server side would be best, but client ...
3
votes
2answers
257 views

How complex of a daemon should be run through inetd?

What is the general rule for which daemons should be started up through inetd? Currently, on my server, sshd, apache and sendmail are set up to run all the time, where simple *NIX services are set up ...
0
votes
1answer
368 views

Debian package with init.d without autostart

I'm trying to create a package which contains the init.d file, but doesn't try to start the daemon right after the installation. Currently, I'm using scripts created from the dh_make template. Right ...
1
vote
1answer
613 views

Trying to setup a PHP daemon using System_Daemon and I'm having issues getting it to run

I get the following error when trying to start a daemon using Ubuntu 10.04 and the PHP5: PHP Warning: PHP Startup: Unable to load dynamic library 'usr/lib/php5/20060613/pcntl.so' - ...
3
votes
3answers
6k views

How can I run supervisord without using root?

I seem to be having trouble figuring out why supervisord won't run as a non-root user. If I start it with the user set to jason (pid 1000), I get the following in the log file: 2010-05-24 ...
9
votes
3answers
8k views

How to stop nginx on Mac OS X

I've installed and configured nginx server on my Mac from MacPorts sudo port install nginx Followed the recommendation from the port installation console and created the launchd startup item for ...
9
votes
3answers
8k views

Is there a “standard” way to make daemon in Debian?

I need to create a daemon from the application in Debian. Is there any standard tool for this in Debian like "upstart" in Ubuntu? I need only start-stop commands, to start a program as a daemon with ...
0
votes
1answer
79 views

Windows port forwarding

This is the scenario: A Windows XP client A Linux Server The client is natted/firewalled/unreacheable from outside, the linux server is public. I need to allow the client, once upon some ...
4
votes
3answers
3k views

is there a difference between a daemon and a service?

Is there a difference between a daemon or a service? or are they both basically an application that is resident in memory, and is bound to a specific port and listens/responds to requests?
2
votes
2answers
4k views

Can start-stop-daemon use environmental variables?

I need to daemonize a Windows app running in Wine, and create a pid in /var/run. Since it requires an X11 session to run, I need to make sure the $DISPLAY variable is set in the running user's ...
3
votes
5answers
243 views

Is there a simple way to daemon-ify a simple task?

I ssh into a server than start a job (for instance rsync), then I just want to be able to log out from the server and let the job run its course. But if I just do rsync ... & I think it's still ...
1
vote
5answers
612 views

Writing a Linux Service

I would like to write a Linux service using PERL, but don't know how to do. (I know perl) I have a MySQL database, and need to check it for new records, so I can process them. The service should ...
2
votes
1answer
577 views

Creating Daemons in Linux… how should the file permissions be?

I am setting up a few PHP Gearman Daemons running on PEAR System_Daemon. I need them to be able to write to the following locations... /var/run/{APPNAME}.pid /etc/init.d/{APPNAME} ...
2
votes
2answers
2k views

Linux - Run a daemon as 'nobody'

I have a daemon sitting in my root directory that currently is being run as root. However, since this program can read the file system, this is clearly a security problem. How can I run it as nobody ...
2
votes
2answers
292 views

daemon running for several hours, and dies

After restart server, this is running: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 19653 lighttpd 16 0 67584 39m 16m R 21.3 15.3 0:17.60 php-cgi 8006 mysql 15 0 ...
5
votes
5answers
159 views

Starting a mysql server in my ${HOME}?

I'm not root on my server (linux) and this server doesn't currently run a mysql server as a daemon. Can I start a mysql daemon that would only work for my account and where the data/files would be ...
0
votes
3answers
174 views

An easy way to see what in /etc/init.d/* is running?

I left my laptop cable at home, and I'm running on battery. I'm using Ubuntu Linux 9.10. I know about powertop and I'm using that. It told me that a few things I'd installed (postgres, mysql, etc) ...
0
votes
2answers
188 views

“Must have” tools for managing arbitrary *nix daemons and their activities

What tools do you advise for managing running daemons? This includes: Load monitoring: renice a daemon when it slows down the whole server Keeping alive: restart it when it's not functional. Maybe, ...
1
vote
4answers
3k views

How do I force output to a file when there is no TTY allocated?

I have an init script that does something like this in the start() function: runuser -s /bin/bash - prog -c "nohup php /foo/bar.php 2>&1 >> /var/log/bar.log &" When I SSH into the ...
4
votes
1answer
325 views

Opera unite as a daemon

Is it possible to run an opera unite server without the browser? Say for instance I want to use my always-on FreeBSD server, which doesn't run X.
4
votes
3answers
2k views

Scheduling tasks with Django

I have a Django website, and I want to have a certain piece of Python code run at regular intervals. What would be a good way to do that? I know I can cron, but I would prefer the solution to be ...
2
votes
6answers
8k views

Running JBoss-5.1.0.GA as a service / daemon on Red Hat?

I am using JBoss 5.1.0 GA on Red Hat (Amazon ECS)... Am trying to set it up so JBoss will run as a service / daemon (right now it only starts up when I manually SSH and invoke sh ...
5
votes
4answers
7k views

How do I automatically restart a process on server reboot/process exit?

On my Ubuntu server I use God to monitor some Ruby processes/scripts, including a Queue system. God automatically checks when one of my processes exists and restarts it. It also keeps track of memory ...
11
votes
7answers
20k views

Disable a service from starting at all runlevels?

I have a service foo which currently starts at runlevel 3 and above. How can I stop it from doing so, without using update-rc.d foo stop 3 ., which (if I understand it correctly) would turn off the ...
10
votes
6answers
19k views

Debian: Too many open files

I have long running process at Debian. At some point in throw an error "Too many open files". ulimit -a shows open files (-n) 1024 I wish to increase number of open ...
2
votes
7answers
2k views

Shell script to execute something when one of the daemon dies?

I just had to build two instances of daemon running on different ports. let's say they both serve critical missions for some applications. How can I do some automatic task (eg. shell script) ...
5
votes
6answers
2k views

How to daemonize servers on Ubuntu?

I've got a couple of servers on my Ubuntu that need to be restart-proof daemonized. How can I do that with generic init first process? Should I swap to upstart or some other replacement?
0
votes
1answer
2k views

emond process running at 100%

I have a couple of XServes running 10.5.6 and both of them have emond running at 100%. If the servers are rebooted emond will not immediately consume 100%, but it will eventually. I haven't seen ...
2
votes
3answers
1k views

How do I create an interactive daemon login?

I run a service on a debian/linux machine which runs at boot with a 'screen' session I can always attach to. I would like to create a username which I can run this service as. At the moment I use a ...