I have a python gtk app I need to run when a user logs in. I can't get upstart to launch any gui app, even if x is running.
When I'm signed into X, and I emit the event from the upstart script below
guitest
with initctl, I get
initctl: Event failed
Here is an example of my script, except I've replaced gedit with my app.
I have a django app that i am looking to deploy. I would like to use upstart to run the app.
Is it possible?
I want to start up a GUI app on desktop start but I the script is going on a variety of systems so I won't know if display is :1.0 or :0.0.
I'm trying to use the variables defined in /etc/environment in an upstart script.
I'm able to export the variable to the child process but for some reason I not able to use them in the upstart script stanza itself.
This works:
script
.
I am new to HA Proxy and Upstart Scripting. I am using, HA Proxy version 1.4.18 2011/09/16. I am trying to write an upstart script that will keep haproxy alive in case haproxy dies. This is what I have so far:
script
if [ $(pgrep haproxy) ]; then
restart haproxy;
else
start haproxy;
fi
end script
Does look like a legible code?
I have to following problem: We have an Java application which is started by an bash script.
This application should run as a daemon, so we have an upstart-job to start it.
start on runlevel [2345]
stop on runlevel [!2345]
#tell upstart we will fork later, so it will mangage the pids.
expect fork
#If the daemon stoppes unexpectedly, restart it!
I want to replicate the Heroku Git build process on my server using gitolite, a post-receive hook and foreman.
The pushed repository has a Procfile in it, so I can generate the upstart scripts using foreman like so:
foreman export upstart /etc/init
Everything works as expected, the app builds on push, but the git user running the export has no sudo privileges, and therefore cannot write the ge
Is there a command i can use in an upstart script to print a message to the console?
feel it could be useful for debugging
I have tried things such as
emit [string]
exec echo [string]
I am running the script using:
sudo start [script]
I'm trying to set up an Ubuntu (12.04 LTS) upstart script to manage Trac's built in web server as an upstream server for nginx.
Here is my init script /etc/init/tracd.conf.