The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
35 views

PHP script with systemd

I'm new to systemd and I've got issue with script my colleague gave me. This script worked as background process in Debian 7 but doesn't in Debian 8. I decided to rewrite it to systemd. I have this ...
0
votes
0answers
15 views

Adding local docker-deamon to docker-machine?

I've just installed an ubuntu machine with a docker-daemon and I"m able to run docker containers, after that I installed docker-machine and provisioned an ESX machine with docker2boot and I see this ...
1
vote
1answer
19 views

How can I create a log for an existing daemon?

I have a deamon running (that I did not create) and I need to be able to read its logs. Unfortunately, it does not have a log file. Is there a way to pipe the daemon's output into a file, and have it ...
0
votes
1answer
35 views

postgresql - How to deamonize postgres server process for ordinary user

I'm trying to set up a PostgreSQL cluster in my home directory on Debian. EDIT: There are a couple of reasons why I think this a good idea: I don't use Postgres frequently so I don't currently have ...
0
votes
2answers
50 views

Auto-restart commandline process in screen every day

I have a queue script that finds new jobs from the db every second and handles them. Sometimes it doesn't do anything for 10 hours, and sometimes it receives 1000 new jobs in 3 min. The queue works ...
0
votes
0answers
28 views

Upstart - how to convert ubuntu daemon to centos?

On Ubuntu this upstart service did a brilliant job at making sure the app always stayed running (and logged) start on started mountall respawn respawn limit unlimited exec node ...
1
vote
0answers
27 views

How to do remote calls from server A to B to create virtual machines

This is my first question on serverfault so I hope I'm doing this right as I'm usually on Stackoverflow :-) I have two Ubuntu 14.04 LTS servers, server A and B. Server A runs the web server where ...
0
votes
0answers
22 views

What's the recommended way to daemonise an executable with Ubuntu?

I've written a golang app that i'd like to run as a daemon: Start automatically on boot Only allow one instance of it to run at a time Run it as a specific user Save the stdout/stderr to a log file ...
0
votes
0answers
42 views

systemd ignores return code while starting service

I ran into this problem while writing unit-file for one simple daemon. When daemon returns '1' on startup systemd just ignores it, and it looks like daemon was started successfully while it's actually ...
0
votes
0answers
134 views

Multiple Gunicorn daemons for Django projects with Nginx result in 502 Bad Gateway for one

I want to run two Django applications on the same server, with Nginx and Gunicorn. I can run them separately, but not both at the same time: When I try, one is OK, but for the other one I receive 502. ...
1
vote
0answers
40 views

“Job failed to start” - Hey but why?

I'm running through an error that's giving me serious headache. Tried to Google for it but all I find is about MySQL which doesn't apply here. I've just updated Node and Ghost (blogging platform) on ...
1
vote
1answer
574 views

What is meant by /sbin/init too old? [closed]

I am trying to use Upstart to daemonize a script. So, I made a .conf file under /etc/init/. Now to check the conf file I did init-checkconf /etc/init/ping_me.conf And it says ERROR: version of ...
1
vote
1answer
182 views

daemon function not found in CentOS 6.6

I am trying to set init.d script for some service - let it be less Here is my script: #!/bin/bash -xv # description: read service #Source function library if [ -x /etc/rc.d/init.d/functions ];then . ...
1
vote
0answers
19 views

how do I set monit to non-daemon mode

I'm trying to get monit to just excite the monitrc script once and then exit. I've tried monit -v -Ic /tmp/monitrc but when I look at the output it says: Runtime constants: Control file ...
2
votes
1answer
222 views

Start N processes with one systemd service file

I found this systemd service file to start autossh to keep up a ssh tunnel: https://gist.github.com/thomasfr/9707568 [Unit] Description=Keeps a tunnel to 'remote.example.com' open ...
0
votes
3answers
96 views

Daemon for N autossh tunnels

I use autossh to create a persistent tunnel from localhost to remotehost. Starting autossh manually works fine, but if localhost reboots, the tunnel is gone. That's no surprise. How to create a ...
0
votes
0answers
16 views

Rsync daemon : prevent the access of all a subtree except one folder by the rsyncd.conf file?

I got a Linux server on RHEL and i need to synchronize some folders from locals machines on Windows(with cygwin) and on linux via a rsync daemon on the serv. The tree are not set identically on the ...
2
votes
3answers
461 views

Bash script as daemon on debian

i have a short script in bash, which need to run as daemon on background. It's based on inotifywait, which should wait for changes on specified folder and in case of any changes it should runs copy ...
3
votes
1answer
170 views

What is the proper way to restart a daemon with Ansible on OSX target?

I created a simple Ansible role with the purpose of configuring dnsmasq on OSX targets (dnsmasq is installed from homebrew). I want to create a handler that would restart the daemon when ...
0
votes
1answer
20 views

How to send a group of command in background

I'm writing my own generic init script, I've taken strategies from here and there and come up with trap 'kill $(jobs -p)' EXIT; until $DAEMON $DAEMONOPTS > /var/log/${NAME}.log 2>&1 & ...
1
vote
1answer
197 views

How to configure a newer version of Supervisord to start on system boot in Ubuntu 12.02?

How do you configure a newer version of supervisor to start on system boot in Ubuntu? Some distributions simply lag behind in their repositories. When I use easy install (as recommended by default on ...
0
votes
0answers
112 views

Can I send a command to stdin of a systemd monitored process

I use systemd to monitor a few gameservers. Some of them accept commands at runtime via stdin. Does systemd somehow allow sending input to processes? Pretty much like journalctl, but the other way ...
2
votes
1answer
31 views

chkconfig shows off in all levels but it running

In my CentOS6 machine, chkconfig shows about httpd as below, but running automatically whenever reboot the system. httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off What can I ...
3
votes
1answer
41 views

Should I rather explicitly run programs in foreground (instead as a daemon), or `expect fork` when configuring upstart daemons?

Many programs allow to be run either in daemon mode (which is usually the default), or explicitly run it in foreground with a flag such as -f. Now when configuring upstart to run programs like this, ...
0
votes
0answers
30 views

Cross distro daemon command?

I'm trying to write a script to launch a daemon on both centos and debian. This is the current pseudo script: if [ =f "/etc/init.d/functions" ] then . /etc/unit.d/functions alias ...
0
votes
2answers
50 views

Cannot bind to port > 1007?

I want to bind a server to port 1023. If I specify any free port > 1007, I have a "address already in use" error, but it works for ports <= 1007. Working as root on Debian 7.8... Any idea?? ...
0
votes
0answers
94 views

Daemon is sending email to root@vpsxxxxx but which deamon?

I have an email address host a Gandi which is: test@mydomain.com password: 1234 I set up an ssmtp deamon on a VPS debian to be able to send email through this address. /etc/ssmtp/ssmtp.conf is: # ...
0
votes
1answer
180 views

MacOS Yosemite: Does setting PATH variable in /Library/LaunchDaemon work?

I launch a thing written in python from plists in /Library/LaunchDaemons in Yosemite and I want it to run some scripots. And it seems not to take PATH fro the plist file. For example if I have this in ...
7
votes
3answers
14k views

What is the difference between syslog, rsyslog and syslog-ng?

I am a bit confused in syslog, rsyslog and syslog-ng. From where can I get the source code for syslog()? Is there any difference between rsyslog and rsyslogd?
1
vote
2answers
383 views

Unable to get Rsyslog structured data in syslog message

I am new to syslog module. I am trying to log messages with structured data by using this parameter in template. But it is showing null value for structured data. I am working with rsyslogd 5.8.11 ...
1
vote
1answer
148 views

How should I manage a long running server process on Ubuntu?

I have an app (in the form of a single binary) that I need to run on one of my servers, and I'd like to be able to control its lifecycle properly. What I'd like is the following: simple one command ...
0
votes
1answer
556 views

Can't boot Mysql on Centos 7

I've installed mysql on Centos 7 (mysql-community-server) as root. The problem is that I can't start the daemon with "service mysqld start", It never return me to prompt and even if I try to use ...
0
votes
1answer
139 views

mina deploy failed from Vagrant Ubuntu/trusty32

I'm new to rails. Have spent this whole morning trying to debug this strange problem. I am trying to deploy my rails application using mina to a staging server. My server is Ubuntu/trusty32 14.04 ...
1
vote
1answer
278 views

FreeBSD: netatalk3 daemon keeps restarting

I set up a netatalk3 / afpd daemon on my FreeBSD server about half a year ago and used it as networked TimeMachine for my MacBook Pro. Pretty much fire and forget. Then, beginning of this month, I ...
-4
votes
1answer
34 views

Run two daemon jobs in two different directories [closed]

I want to write a script that would start two daemon jobs in two different directories. This script should run in the foreground, and then when I press ctrl-c, the script would exit and bring down ...
2
votes
0answers
805 views

systemd user units and debian wheezy

I'm running a debian wheezy server and switched to systemd by installing systemd-sysv. So far everything works as before. Now I want to allow users to run/ manage their own units/ daemons with ...
3
votes
1answer
312 views

How can I find what's starting crond?

I need to stop crond at the command line. (I'm writing a script which needs to stop it, do some work, and then start it again. I'd rather not remove and replace the crontab file because it's more ...
0
votes
1answer
26 views

Installing OS-programs in linux

A previous user asked a question on where to install applications, and the answer spells out how the directories are used, however, as the answer says, when you use make install for a system daemon ...
0
votes
1answer
141 views

init.d script appears to run but dies immediately

I registered the init.d script and when I invoke this directly /etc/init.d/gae it appears to work...PID file is created but the process is no where to be seen by the time I do a ps I have googled and ...
2
votes
1answer
577 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) ...
1
vote
1answer
538 views

Supervisord as Windows Service on Cygwin

I am attempting to run Celery as a Windows Service using Supervisord. I followed the configuration laid out on the Celery site and here. I have set up a virtual environment to run supervisord through ...
2
votes
3answers
192 views

Can I use Bash interpreter in service/daemon scripts?

I'm writing a Debian/Ubuntu service that should start on at runlevel 2-5. Most of the existing services I came accross are written using /bin/sh (Shell) interpreter while /bin/bash (Bash) offer lot ...
1
vote
1answer
1k views

runit does not kill process on sv stop or sv reload

i am running a headless selenium process along a jenkins server on an AMI linux box, all managed by runit. the problem is that issuing "sv stop selenium" or "sv reload selenium" do not term or kill ...
4
votes
5answers
5k views

Standard or best way to keep alive process started by init.d

I'm looking for a standard way or best practice to keep a daemon started by an init.d shell script alive. Or even better, is there a way to keep it alive directly from /etc/init.d? Specifically, I ...
1
vote
1answer
2k views

Managing daemons with supervisor: no foreground mode available

I'm trying to manage a process with supervisord, but the process does not have an option to run in foreground: it always daemonizes. (That's Zabbix Server). Is there any way to manage daemons with ...
0
votes
1answer
48 views

SecAst: Premature Exit in Daemon Mode

To Generation D: This is a new problem with build secast-1.0.4.0-x86_64-ub12 that didn't happen with the previous build, secast-1.0.1.0-x86_64-ub12. When secast is run as a service (service secast ...
4
votes
1answer
4k views

Monit configuration reload - supposed to restart monitored services?

Running Monit 5.4 on an Ubuntu server. When I use monit reload, it seems that it restarts monitored services (Tomcat 7 in this situation). Is it the expected behavior? Documentation says : reload ...
1
vote
0answers
140 views

Oracle 6.5: MySQL Daemon failed to start

I installed MySQL by following these instructions on my Oracle Linux Server release 6.5, specifically using the yum package installer command, yum install mysql mysql-server mysql-libs mysql-server ...
0
votes
1answer
193 views

Start daemon after specific samba share is mounted

I asked this question on AskUbuntu, but it's not getting any traction there... So I'll try here as well: I have a homebrew headless NAS running 12.04. In it I have a bunch of disks that are ...
2
votes
1answer
7k views

How to start Mongo daemon with auth support

I want to start the MongoDB daemon with auth support using the Mongo init script: sudo /etc/init.d/mongod start I have also added db users to the database to authenticate. I'm working with two ...