0
votes
2answers
40 views

Why programs often fail to run when started by `daemon`?

I do daemon -f -i ./some_gui_program - it starts. I do daemon -i ./some_gui_program - nothing visible happens. Why I can't start GUI programs detached on Linux this way? What's the use of daemon's ...
1
vote
2answers
84 views

Writing own daemon. systemd error: Failed to read PID from file: Invalid argument

I'm trying to write own daemon a la very simple MPD (it's operating systems laboratory work). I made it work: it starts like a daemon (output of ps): 1 14877 14877 14877 ? -1 Ss 0 ...
1
vote
3answers
156 views

Is there any alternative to echo daemon to display ip?

Is there any alternative to echo daemon to display ip instead of given string? For ex: my ip = 80.1.2.3 server ip = 1.2.3.4 root@my-machine bash$ telnet 1.2.3.4 Trying 1.2.3.4... Connected to ...
1
vote
2answers
49 views

Begin root process at boot?

I'd like to start a background process as root when my Linux install boots. Can I just add it to a directory or a configuration file?
3
votes
1answer
374 views

Difference between long running process and daemon?

I'm trying to use Forever to keep my nodejs scripts up and running As per Forever's homepage it says [Long Running Process] The forever process will continue to run outputting log messages to ...
4
votes
2answers
2k views

Make daemon start up with Linux

I'm writing a simple daemon application using C/C++ and I want it to start when Linux starts up. I am a beginner on Linux systems. I have tried to modify /etc/init.d/skeleton to add a script into ...
2
votes
0answers
135 views

What is the recommended way of start and supervise daemons on Arch Linux? [duplicate]

Possible Duplicate: Ensure a process is always running At the moment I use a quick and dirty nohup ... & to start application and database servers. E.g. su - foo -c "nohup php-cgi -b ...
1
vote
7answers
1k views

What's the cleanest way to schedule autoexec.bat like command in Linux?

I want to create a small script for my Linux system that would do some simple things on PC boot. The script is most likely going to be Python, but maybe I'll resort to C or shell. The problem is that ...