The tag has no wiki summary.

learn more… | top users | synonyms

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 ...
1
vote
2answers
389 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
703 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
118 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
133 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
318 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
611 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
552 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 ...
0
votes
1answer
32 views

Daemons refuse to start on Ubuntu 8.04 Server

We have a system that's already running on several instances of Ubuntu 8.04 Desktop. It has a bunch of daemons (one of them is PHP based) that need to be running and they work on our existing Ubuntu ...
1
vote
1answer
64 views

failure daemon and changing pid number

proftpd, sshd and apache processes run with /etc/init.d/its-script on linux distro. I was monitoring 21, 22 and 80 ports with farm monitoring service: every 5 minutes service check each port and ...
1
vote
2answers
1k views

Issue Starting MySQL Daemon

I have just come across the most random error I've seen my MySQL daemon spew out yet, everything was working fine, then all of a sudden it randomly crashed and it now outputting this when I start it ...
0
votes
2answers
264 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
251 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
104 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
381 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 ...
0
votes
1answer
2k 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 ...
1
vote
1answer
390 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 ...
0
votes
2answers
227 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
533 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
361 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 ...
1
vote
0answers
92 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
1k 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
2answers
682 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 ...
0
votes
1answer
448 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
249 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
254 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
203 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
52 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
509 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
250 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 ...
3
votes
2answers
1k 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
275 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
295 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
704 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
2answers
978 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. ...
0
votes
1answer
623 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 ...
0
votes
1answer
31 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
569 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
307 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 ...
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 ...
0
votes
2answers
498 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
249 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
71 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
1k 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 ...
1
vote
2answers
350 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: ...
1
vote
1answer
143 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
328 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 ...