Results 1 to 3 of 3
Hi everyone,
I really don't know if it's a good place to post this question, but I have this problem that I just can't seem to be able to resolve...
...
- 06-12-2009 #1Just Joined!
- Join Date
- Oct 2008
- Posts
- 7
Starting daemon through upstart
Hi everyone,
I really don't know if it's a good place to post this question, but I have this problem that I just can't seem to be able to resolve...
I want to configure one of my machine so that it starts an application each time it boots and I want to prevent that it fails, so I want it to be always running whatever happens.
After searching a lot on the web, I discovered that daemons were managed through upstart since Fedora 9. Since I'm on Fedora 10, I used that tool and put a script job in /etc/event.d directory.
Unfortunately, my app, called by a shell script, has a GUI and, when the daemon is started, my app. never starts even though the following command does start my app : exec /home/user/appdir/appexe.sh
So, first, I would like to know if there is a way to start a daemon using a display (connection to an X server)
I tried to run my shell script in /home/user/.kde/Autostart (Afted KDE is loaded, everything is this folder is started), it worked pretty well (I had my app with my GUI), but, in this case, one is not able to prevent "eternal" life to its application. If it dies, it dies until an user restarts it manually, something I don't want to do.
So any inputs from one of you guys? Any enlightenment would be very much appreciated !
Thanks,
Jérôme
- 06-12-2009 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
There is a "dummy" xserver called Xvfb which will let you run x-applications before the desktop boots up or if there is no x-windows desktop.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 06-12-2009 #3Just Joined!
- Join Date
- Oct 2008
- Posts
- 7


Reply With Quote
