The Following User Says Thank You to b0unc3 For This Useful Post: | ||
![]() |
2010-03-19
, 19:00
|
|
Posts: 1,070 |
Thanked: 1,604 times |
Joined on Sep 2008
@ Helsinki
|
#2
|
respawn console none start on started xsession stop on stopping shutdown script exec /usr/bin/myapp end script
The Following User Says Thank You to VDVsx For This Useful Post: | ||
![]() |
2010-03-20
, 17:19
|
Posts: 318 |
Thanked: 735 times |
Joined on Oct 2009
|
#3
|
Try this:
Note that can be a problem in your app, if it is crashing upstart might kick it and ignore the respawn flag.Code:respawn console none start on started xsession stop on stopping shutdown script exec /usr/bin/myapp end script
The Following User Says Thank You to b0unc3 For This Useful Post: | ||
I have a little troubles using autostart to let my application starts automatically.
If I read correctly the autostart documentation the only thing I need to do is to write a script in /etc/event.d/ directory, and I've doing it so :
there is the output:
Any hint will be appreciated