The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
0answers
25 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
18 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
20 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
54 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
33 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
267 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
99 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
17 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 ...
1
vote
1answer
97 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
64 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
15 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
240 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
106 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
106 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
80 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
25 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
33 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
28 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
47 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
73 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
170 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 ...
6
votes
3answers
10k 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
349 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
126 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
471 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
123 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
254 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 ...
1
vote
0answers
760 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
270 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
134 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
503 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
467 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
185 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
4k 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 ...
0
votes
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
46 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 ...
2
votes
1answer
3k 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
131 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
179 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
6k 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 ...
0
votes
1answer
236 views

Launchd job runs but then quits immediately

I wish to load and run a Lisp program in CCL in the background automatically when my Mac (OS 10.9) boots. I have a launchd plist that I've saved to /Library/LaunchDaemons, <?xml version="1.0" ...
2
votes
3answers
62 views

Daemons on a web server - best practices [duplicate]

This might be an obvious thing to seasoned Ops but, please, bear with me on this one (I'm a dev with the side effect of having to manage our servers too). At the moment, one of several servers (load ...
4
votes
3answers
8k 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 ...
4
votes
1answer
244 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 ...
7
votes
1answer
6k views

daemon function isn't working in CentOS 6.4

I'm trying to daemonize a process under a different user. In my init.d, I have a service which looks a little bit like this: ... start() { echo "Starting mydaemon..." daemon --user someuser ...
1
vote
0answers
32 views

Upstart - make “reload” behave like “restart”

I have a daemon process that doesn't respond to SIGHUP sent when running reload. It runs under an unprivileged user, and I can't restart it without sudo privileges. Is there a way to make reload to ...