Tagged Questions

Daemons are programs which run in the background in multitasking operating systems. On Unix-like operating systems the names of many daemons end in the letter "d".

learn more… | top users | synonyms

0
votes
1answer
40 views

Increasing Yosemite maxfile limit for Application

I've been trying to up the maxfile limit and maxfileperproc limit on Yosemite, with no luck. I have created a sysctl.conf file in the etc folder, which has successfully increased the values when ...
0
votes
0answers
12 views

Check if a daemon triggers watchdog

I read about sd_notify (http://www.freedesktop.org/software/systemd/man/sd_notify.html) and was wondering if it's possible to somehow find out if a daemon sends some notifications. In particular, I ...
0
votes
0answers
22 views

How is a basic daemon made on OSX?

I have an OSX system that I'd love to have some daemons set up on that will automate the updating of all of my console utilities. How would I go about creating and running such daemons? I'd also like ...
1
vote
1answer
17 views

Where to log stdout and stderr of a daemon

I am writing my first linux daemon and I am wondering where to log its stdout and stderr. It is going to work for all users. I guess I could do it wherever I wanted, I just wonder if there are some ...
0
votes
0answers
25 views

Customize mailer-daemon error messages in LAMP

I need to customize bounce and error messages sent from MAILER-DAEMON in a LAMP environment. Instead of the standard message From: Mailer-Daemon@xxxxxx.co.uk To: johndoe@hotmail.com ...
0
votes
0answers
31 views

Creating and running a launchd daemon

I'm trying to follow along w/ the tutorial located here: http://www.tuaw.com/2014/06/11/how-to-keep-homebrew-and-xquartz-updated-automatically/ I've properly set up all of the script files, but am ...
1
vote
0answers
24 views

Windows daemon to execute commands read from file [closed]

I have a programming language (Stata) where one is usually able to execute shell code except for a particular environment (Windows in non-interactive/"batch" mode). I would like to find a way around ...
0
votes
1answer
146 views

how can I run a java application as daemon?

I use to run an application in CentOS with the command nohup java -jar AnalyticsBackend.jar & Now I want to run this application as daemon i.e. on reboot, this application shoud start running ...
0
votes
0answers
13 views

How can I queue a script to run the next time a system is up and connected to the internet?

I'm using mailsend (on a Mac) to send mail from the command line. I'd like to set this up such that I can execute a send command, but if my system is disconnected from the internet, that command is ...
1
vote
2answers
109 views

What's the difference between docker.io and docker?

Trying to learn docker here but I am a bit confused on what the difference is between docker.io and docker. Is docker.io the daemon server and docker the client? Why does the daemon need to run all ...
1
vote
1answer
40 views

Will re-installing MySQL remove or delete existing databases?

If I reinstall MySQL, without removing the actual MySQL installation, would it rewrite all files without deleting my databases? My problem is my mysqld is broken, due to the fact that I accidentally ...
0
votes
0answers
46 views

systemd: Start some services only when at home (based on WLAN SSID)

I would like to have some network daemons like sshd or NFS only running on my laptop when I’m in my home network for security reasons. Is there a way to automate this with systemd and e.g. ...
1
vote
1answer
172 views

linux: monitor logfile for a string and execute script

I want to monitor a logfile (syslog) on my linux debian box. So if there is a new entry with a secific string, i want to execute a script. The strings are "alarm start" and "alarm end" So it should ...
0
votes
0answers
38 views

qBittorrent hangs when daemonized with Supervisor

I want to use qbittorrent-nox (a version without desktop GUI) on my Debian server. Everything works fine if I run it directly from an interactive shell. When trying to daemonize it with supervisor ...
0
votes
1answer
168 views

Logstash agent doesn't run as a daemon on MAC OS X 10.9.1

I need to run the logstash agent as a Daemon on an MAC OS X System whenever the system boots up terminal: /usr/local/logstash/bin/logstash agent -f /usr/local/etc/cvlog.conf Per terminal the ...
0
votes
0answers
169 views

How to prevent start-stop-daemon start multiple instances

I am trying to start a process using start-stop-daemon and it works! $ sudo start-stop-daemon --background --start --pidfile /var/run/program.sh.pid --exec /usr/sbin/program.sh --make-pidfile $ ps ...
0
votes
1answer
83 views

init.d service doesn't start

I have installed ushareand want to start is with booting. sudo service ushare startworks, and there is a link to start ushare in /etc/rc2.d (and also rc3, rc4, rc5) and there are stop links in other ...
0
votes
0answers
44 views

Decrease browser load time by increasing priority of unbound DNS in systemd

I believe to decrease the launch time of browsers after boot/starting the X servers increasing the priority unbound processes would help. I believe editing the unbound.service file would do this but ...
0
votes
0answers
76 views

Start up script to choose between Ethernet and USB Cell Modem

I am playing with a BeagleBone Black running Debian Wheezy and I have written a startup script that waits (sleeps) for the ethernet to connect. If it doesn't connect via ethernet and get an IP ...
0
votes
1answer
45 views

SMTP listeners on a workstation?

I'm working on a Debian 7.30 (x64) workstation. I noticed I have a couple of SMTP listeners: $ netstat -A inet,inet6 --listening | grep -i smtp tcp 0 0 localhost:smtp *:* ...
0
votes
1answer
89 views

Killing daemon and closing port without ability to use 'lsof'

I have an application that spits out the time when it is requested from a client. I don't have permissions to use port 13, so I put it on a really high-numbered port. Now I can't kill that port, and I ...
0
votes
1answer
193 views

OpenVPN server issues

I am unable to connect to my OpenVPN server running on latest ArchLinux version, the port seems open if I scan from the outside, so im pretty sure its correctly forwarded, however the client displays ...
0
votes
0answers
147 views

Linux: run bandwidth throttler daemon (trickled) on start-up

I want to run the bandwidth throttler trickled automatically on boot up. (Raspbian OS on the Raspberry Pi). What methods are there, and which one(s) are standard practice? The options I've found are ...
1
vote
1answer
125 views

Launchd alternatives

I am writing an application that uses a library that will not work when the application is run as a launchd daemon. There is a bug in the library where it will throw a bus error when used from a ...
0
votes
1answer
103 views

Cross-platform daemon/service stop and start

Is there a tool which can control daemons/services in a cross-platform manner? In programming there are different build tools that allow you to build software from source on different platforms; the ...
7
votes
4answers
5k views

Linux : To monitor a Service and restart if stopped?

Actually I'm not so sure whether i should use Shell Scripts, or if there some ways already. But whatever approach we use, i would like to keep a Service running all the time. Let's say iptables as an ...
0
votes
2answers
409 views

How to run app on startup as different user?

I have MineCraft server, and I need run it every time I start Debian. I solved it, but it always run as root. I need it run as normal user.
2
votes
1answer
2k views

Teamviewer-like SSH daemon

I have a computer at home with SSH installed which I would like to be able to control remotely. However, I am not able to allow SSH port forwarding through my router, so the only way to get in would ...
0
votes
2answers
665 views

How to start FatRat HTTP server daemon in console?

I'm new to Linux and I would like to setup a simple download server on my RaspberryPi. I installed FatRat via: apt-get update apt-get install fatrat Since I'm not using a GUI on RaspberryPi, I ...
1
vote
1answer
286 views

Weird start-stop-daemon behaviour?

I have the following script: #!/usr/bin/python3 import sys for s in sys.argv: print(s) Now I execute: sudo start-stop-daemon --start --pidfile /var/run/test.pid --make-pidfile ...
3
votes
2answers
195 views

Copy Linux liveUSB causes errors with init.d scripts - Impossible..?

Please post your thoughts ideas or anything you may come up with. I would be very interested to see what anybody else is thinking. The Overall Problem When I install a simple Java application ...
2
votes
1answer
1k views

Is it possible run Transmission daemon and Qt/GTK GUI at once in sync?

The title is the question. Originally this Ubuntu machine was meant to be headless, but I installed LXDE. Usually Transmission is run by the default GTK+ GUI. Instead of making sure the daemon runs ...
-1
votes
1answer
2k views

Samba: smbd unrecognized service

Running service smbd restart on a Debian Home server gives me an error reading smbd unrecognized service. The service ran fine after the initial installation, with the abbreviated output being: ...
1
vote
2answers
265 views

Disabling syslogd in FreeBSD

I'm running FreeBSD in a very small VM with about 1.5G of space. I'd like to disable syslogd to save disk space, but there is no entry for it in /etc/rc.conf. service -e shows that syslogd is indeed ...
-1
votes
2answers
2k views

Remote deluge daemon connection

I'm trying to follow this guide to run a deluge daemon on a headless server. The client part seems to be working, but the server part doesn't seem to work at all. Deluge-console is supposed to allow ...
1
vote
1answer
254 views

Simple daemon in C for constantly removing files from a user directory [closed]

I am trying to make a simple daemon for continuously deleting files from purple/icons ( the pidgin dir ). However, remove() and unlink() are not deleting files. Here is my code, please, tell me where ...
1
vote
0answers
96 views

How to kill buffers when quitting a client frame in emacs daemon

I'm using emacs as a daemon on OSX ML. When I close an instance emacsclient -t, I'd like emacs to kill all the buffers I've opened within the instance of emacsclient. Doing C-x C-c or C-x 5 0 does ...
1
vote
1answer
127 views

How can I reboot system using Upstart?

I'm using Upstart on Ubuntu 12.04 to control and monitor a service defined by me, where the service is a user process running as a daemon. I need to monitor it so, when it fails/crashes it respawns, ...
0
votes
1answer
74 views

Debian: daemon program quits immediately when run as jenkins user

I'm trying to run an IRC bot as a daemon using daemon (also tried with the daemonize utility), I use the following command to run it, daemon --name=HsIRCb ...
0
votes
1answer
2k views

Excessive resource usage from /usr/sbin/atd?

I've been getting excessive resource usage notification from ConfigServerFirewall about this. Is it safe to disable /usr/sbin/atd, or should I just let it be and ignore it?
0
votes
2answers
336 views

How to launch a daemon as root in OS X

I put my plist in /Library/LaunchAgents and my exexutive program in /usr/libexec and daemon statrs when system startup . But this daemon is owned by user . I try to put my plist in ...
1
vote
1answer
37 views

is it possible to change the way of authenticating linux with the help of a daemon (FC4 particularly)?

I got a pc and a special application installed on it, the OS is FC4 and we don't have root password I tried several random passwords and after 3 times I realized that something fishy is happening ...
1
vote
1answer
1k views

Running – or only starting – a daemon using launchd

I'm trying to set up YouTrack on OS X Lion Server and have it launch at boot using launchd. I have downloaded the YouTrack jar file which I can successfully run from the command line using java ...
1
vote
1answer
2k views

Installing daemon on a fresh ubuntu system

I have done a linux service using the article on this link http://shahmirj.com/blog/the-initd-script After that I copied the files into the init.d directory cp -f "myserviced" "/usr/sbin/myserviced" ...
0
votes
2answers
2k views

How to make daemon starts automatically? Ubuntu server 12.04

I have nginx and postgresql daemons installed. How can make them start automatically every time server is started? I think to add sudo service nginx start sudo service postgresql start to ...
7
votes
3answers
8k views

How to automatically restart a linux background process if it fails?

I have a process which is executed by init.d script on the background. Eg: case "$1" in start) /bin/myprocess & stop) killall myprocess restart) killall ...
0
votes
1answer
1k views

Find out which port the daemon is using [duplicate]

Possible Duplicate: Finding the process that is using a certain port in Linux Suppose I run some daemon but I didn't remember which port it usually use. How can I obtain this information?
2
votes
1answer
343 views

systemctl (Fedora 17) and interacting spawned processes's consoles

Introduction I've recently upgraded to Fedora 17 and I'm getting used to the newer systemctl daemon manager versus shell init scripts. A feature I need on some of my daemons is the ability to ...
4
votes
1answer
2k views

Linux permissions for services

How do permissions work for services in Linux? I already know that I can set read, write and execute permissions for files and directories with chmod each for owner, group and other users but how do ...
2
votes
1answer
105 views

Run serveral daemon using python

I noticed that serveral daemon invoked python seperately. For example, I have both wicd and ibus daemon running on my machine. Instead of launching a single instance of python, the daemons run with ...