The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
2answers
290 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
662 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 ...
0
votes
2answers
3k views

mysqld: Job failed to start

OS: Ubuntu 12.04 Command: sudo /etc/init.d/mysqld start Occasionally mysqld failed to start. I don't make any changes in my.cnf or any other configuration on this laptop. One day it's ok, another I ...
2
votes
0answers
117 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 ...
1
vote
1answer
525 views

Service modules_dep on CentOS 6.3

I'm trying to determine the minimum services for correct server operation and I am getting annoyed by the modules_dep daemon. What is this service used for? Thank you in advance EDIT: ps ax output ...
1
vote
1answer
4k views

Error running MySQL Daemon

I'm getting a bizarre error running my mysql daemon as the user 'mysql' here is what the command spews out, now I've checked and the instance isn't running already :S So, I have no idea why it's ...
2
votes
1answer
1k views

Rename mailer-daemon in postfix

Is there a way to rename the email adress of mailer-daemon@example.com to some other (e.g. mailer-angel@example.com)? I need that the sender of the "Non delivery report" has other email adress than ...
1
vote
2answers
396 views

Shell Script Launching Child Processes

Disclaimer: I'm totally new to shell scripting, but have quite a bit of experience in other languages like PHP and Obj-C. I'm writing my first daemon script. Here are the goals: I want it to run ...
1
vote
2answers
1k views

start-stop-daemon can't find executable that's right in front of it

root@mountain-lion:/opt/smartfox# ls -lha total 180K drwxr-xr-x 8 root root 4.0K 2012-06-01 14:09 . drwxr-xr-x 4 root root 4.0K 2012-06-01 09:41 .. drwxr-xr-x 8 root root 4.0K 2009-05-17 21:57 lib ...
0
votes
3answers
684 views

debian symlink existing daemon incrond to start at boot

I'm triying to start the incron daemon "incrond" at boot but doesn't work. I have done : ln -s /usr/sbin/incrond /etc/init.d/incrond chmod 755 /etc/init.d/incrond update-rc.d incrond enable But no ...
2
votes
1answer
138 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 (...
6
votes
1answer
3k 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. ...
3
votes
2answers
2k views

Init script & the green [ OK ]

I am trying to install fast-cgi for nginx on an EC2 instance. I followed the steps explained here, but that is meant for Debian and does not work out of the box for a red-hat based system. I modified ...
1
vote
1answer
973 views

Both nginx and php5-fpm init.d startup scripts are non-functional and returning no errors..? But they used to work perfectly

I have been using nginx and php5-fpm on my Ubuntu box for a while now. Everything has been configured and setup correctly, and it ran like a charm. I have been keeping the packages updated & ...
0
votes
1answer
406 views

Simple network queue daemon for port 9100 printer

I have a printer that is connected via the port 9100 aka AppSocket aka JetDirect protocol, which is basically no protocol at all but everything that is sent to that port is interpreted as print data. ...
0
votes
1answer
430 views

AFP / Apple Filling Protocol aka Netatalk access over Internet

I got a simple cloud server and thought it would be nice to have mac native afp Volumes accesss. Installed Netatalk and this seems to work pretty nice. No sensitive data or something but I don't ...
0
votes
1answer
256 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.
-2
votes
1answer
86 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
1answer
951 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
1answer
378 views

Ubuntu Server SSH does not autostart

I use a VPS with Ubuntu 10.04. After I performed "apt-get upgrade", the ssh daemon stopped working and does not automatically start when I restart my server. I have only access to files (edit, create ...
6
votes
2answers
4k views

Run as different user

On a RedHat system, i'm trying to launch a program with a different user who dont have any shell. In /etc/passwd, shell is /sbin/nologin. I have tried: su myuser -c /home/myuser/script.sh Result: ...
1
vote
1answer
398 views

Nginx daemon doesn't want to stop on Ubuntu

I've got an Ubuntu 11.04 i386 server with Nginx 1.0.11. I'm also using this init.d script - the only one I've found. The server starts up well, but each time I'm trying to stop or restart it, the ...
2
votes
1answer
516 views

Can daemontools (djbtools) be configured to start multiple processes as a single UNIX service?

If I have an application that requires two separate processes (front- and back-end) to run properly, is it possible to launch both of them from a single runscript and have daemontools supervise both ...
1
vote
2answers
1k 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
3k 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 particular ...
1
vote
2answers
3k views

How to stop pptpd even when there are active vpn client connections?

After issued command to stop pptpd, the pptpd won't stop until all the VPN client has disconnected. The following code shows pptpd is still running after issuing the stop command. ubuntu@ip-10-138-31-...
0
votes
2answers
1k views

start-stop-daemon checking for existing running process

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 ...
0
votes
1answer
33 views

Service generated content interaction with PHP

I have a daemonized service that generates content at /usr/share/service/content I need this content to be accessible from PHP. The service runs under a user named _service which belongs to the same ...
1
vote
2answers
924 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 ...
3
votes
2answers
440 views

Spawning multiple instances of a daemon in Ubuntu

I have a python script that listens and blocks while it waits for data on a redis list. It runs fine in upstart using the following: description "stage message consumer" author "Nilesh Ashra" start ...
9
votes
2answers
2k 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 ...
0
votes
2answers
990 views

shell script to start multiple Java programs from a directory at boot

I'm not sure if this is the best approach to this, It's my first time doing all of this (including writing shell scripts). OS: Centos My problem: I want to start multiple shell scripts at boot. One ...
-1
votes
1answer
409 views

What is the difference between Windows XP services and Windows 7 services?

I have downloaded an open source C++ application. This application run as a Linux daemon, listening at a port, and waiting for connection from client PC. Someone has compiled this application under ...
0
votes
1answer
76 views

Is it possible to circumvent public key authentication restrictions using SSH daemon?

My web hosting plan does not support public key authentication, however advice given in Public key authentication unsupported by web host. Method to avoid entering password? question suggests it may ...
1
vote
1answer
2k views

Running python script as a daemon in debian

I'm trying to run my python script as a service... But I'm getting this error when I call sudo update-rc.d mylistener start: Use of uninitialized value $ARGV[1] in pattern match (m//) at /usr/sbin/...
1
vote
2answers
681 views

Ensure that a via ftp uploaded file is complete

I want to write a script that runs on a server and looks for a configuration file every x seconds and starts or kills other scripts depending on the data in the configuration file. My question now is: ...
2
votes
1answer
191 views

Upstart, no feedback whether starting failed

I have a daemon in /opt/xyz/bin/xyz. Unfortunately it cannot fork itself into background and will not be able to do so within the next half year. My problem is the following: Entering service xyz ...
2
votes
3answers
722 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
9k 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 ...
26
votes
2answers
40k views

public key authentication fails ONLY when sshd is daemon

I have no clue on how this happens. The distro is Scientific Linux 6.1 and everything is set up to perform authentication via public key. Yet, when sshd is running as a daemon (service sshd start), it ...
3
votes
0answers
1k views

Running Celery as a Daemon while using VirtualEnv

I've setup and tested celery on my amazon linux server, using mysql as the messaging backend and it works fine when running the program directly. My python project and celery install are located in a ...
1
vote
2answers
580 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
3answers
808 views

Make Apache send a copy of requests to a script

Let's say we have a huge list of clients (~30) all running on the same server under different users (and other security settings). I need to write a "spy/logging" script which is able to handle all ...
0
votes
1answer
82 views

What's the difference between a daemon listening on 10.0.2.15:53 and a daemon listening on 0.0.0.0:53?

I wanted to know the difference between these two states, I just did a netstat -anob on my 2008 R2 testing machine.
1
vote
3answers
839 views

Server-side antivirus [closed]

We're looking for some sort of antivirus for a server running Linux and can't seem to find a decent one that runs server-side. And by serverside I mean that it could run as a daemon instead of having ...
1
vote
1answer
334 views

Does STDERR go to syslog in an LSB init script?

I am running a Debian system and have an init script in /etc/init.d/ that starts a daemon using start-stop-daemon: start-stop-daemon --start --quiet --pidfile /tmp/myproject.pid --exec /usr/bin/...
0
votes
1answer
181 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 ...
1
vote
1answer
156 views

Considerations for building SysV or Upstart compatible Bash scripts

I've just knocked out a quick script for keeping a slave web server in sync with a master using rsync. (https://github.com/simonjgreen/liveFolderSync/blob/master/liveFolderSync.sh) I'd like to make ...
1
vote
1answer
4k 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 ...
0
votes
1answer
436 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 ...