0
votes
1answer
24 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
31 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 ...
3
votes
3answers
562 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
331 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
144 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
184 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
561 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
vote
1answer
158 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
1answer
83 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
1k 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?
1
vote
1answer
760 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
1k 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 ...
5
votes
3answers
3k 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
778 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?
3
votes
1answer
1k 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 ...
1
vote
0answers
457 views

using screen with start-stop-daemon, sysv

I'm trying to run a program with an ncurse interface as a daemon using screen. I want to use start-stop-daemon to manage the process, but I'm having trouble creating a SysV init script. Variables: ...
0
votes
2answers
405 views

Daemon <||> Process control differences

With respect to this excellent post: http://stackoverflow.com/questions/958249/whats-the-difference-between-nohup-and-a-daemon I would like to ask the following: After launching an application from ...
0
votes
2answers
1k views

script calling script as other user

Using CentOs, I want to run a script as user 'training' as a system service. I use daemontools to monitor the process, which needs a launcher script that is run as root: : #!/bin/bash exec >> ...
1
vote
1answer
65 views

Looking for cache daemon

I'm looking for a daemon that I can install on my Debian server, and can be controlled through PHP (preferably with included libraries). It must have a basic key-value cache, BUT it must never ever ...
1
vote
1answer
398 views

How to make core dumping in Linux for every process?

How make Linux core dumping for every process not only for deaemons?
0
votes
2answers
1k views

How can I stop jenkins.pid in fedora15?

I have jenkins running, but I need to stop it. in /var/run I have jenkins.pid which is what the standard jenkins script uses to stop jenkins. The jenkins script uses start-stop-daemon which doesn't ...
2
votes
0answers
119 views

How to create a virtual keyboard in userspace?

I'm trying to generate keypress/release events similar to those produced by typing on a physical keyboard, but from a process that isn't attached to any actual hardware.
5
votes
3answers
1k views

What do the [..] mean in 'ps' and how do you create a process like it?

When running ps, you get something like: root 2 0.0 0.0 0 0 ? S< 00:00 0:00 [kthreadd] root 3 0.0 0.0 0 0 ? S< 00:00 0:00 ...
2
votes
3answers
3k views

need a bittorrent daemon

I'm building a Ubuntu server for the house. I want to centralize torrents. what I'm looking for is something that runs as a service (daemon) that has 3 folders to configure. Actively downloading ...
1
vote
1answer
106 views

Creating a Daemon based sftp client

If i were to build an sftp client which launched with logon details, and could then controlled by sending commands to that daemon; would that be ideal way to create an sftp client with disposable ...
0
votes
1answer
152 views

OpenOffice Daemon Problem

I'm using OpenOffice as a daemon. Sometimes, when the daemon is running a long time, CPU use spikes very high and then OpenOffice crashes. At this point, OpenOffice doesn't work and document ...
1
vote
1answer
595 views

Send command to daemon

I have a minecraft server running as a daemon. When you run it normally (not as a daemon), you can type commands into the console. How can you get to the console so I can send it commands while it's ...
7
votes
2answers
9k views

How do I prevent Linux services from auto-starting?

I have recently migrated from Windows to Linux (xubuntu) I am a developer and have installed everything I need, LAMP. In Windows I used to turn off all unnecessary services - I don't need the Apache ...
2
votes
5answers
9k views

Easy way of daemonizing in CentOS 5.4

I know there is a program called upstart that can make it easy to make small daemons. I can't get this program to configure on CentOS. I get all sort of errors concerning pkg-congfig, libnih, and ...
2
votes
1answer
3k views

User Permissions: Daemon and User

I often run into this issue on Linux, and I'd love to know the proper way of solving it. Say I have a daemon running. In my example, I'll use LigHTTPD, a webserver. Some software, like Wordpress, ...