1
vote
1answer
24 views

Are upstart jobs guaranteed to be given time to run?

I am writing an upstart job that runs a shell script at startup and shutdown which synchronizes some files with a remote machine using rsync. The script can sometimes take a long time to complete if ...
1
vote
1answer
27 views

Upstart script that displays errors to the console?

I have a simple upstart script that runs a process and respawns it if it crashes. The problem is if it crashes I want the user to be alerted that it crashed (because they may need to take an action to ...
0
votes
1answer
36 views

My upstart script is says its running but doesn't actually run - Ubuntu 10.04 LTS

This is on Ubuntu 10.04 LTS So I've got a gulp script (running through Node) that works great when I execute it manually. It actually runs a "watch" on a directory so that if any of the files change ...
0
votes
0answers
32 views

error with upstart script

Further to my last question, I'm now using logger. I have the following upstart configuration start on runlevel [2345] stop on runlevel [06] respawn pre-start script exec 2>&1 > ...
0
votes
1answer
45 views

Fail to redirect log to /var/log/syslog

I have an upstart script that does the following start on runlevel [2345] stop on runlevel [06] respawn pre-start script exec >/dev/kmsg 2>&1 REPO=git@github.com:blabla/bli ...
1
vote
1answer
151 views

Upstart: Run service as unprivileged user and pre-start script as root

I have following upstart job: description "posty api" start on mysql stop on shutdown env RACK_ENV=production setuid vmail setgid vmail chdir /opt/posty_api pre-start script mkdir -p ...
1
vote
0answers
14 views

Best way to run service no matter the distro

I am working on an application and want to make the script start on boot, and for the users to be able to run things like service my-program restart What i am seeing is there seems to be different ...
0
votes
0answers
26 views

Upstart spawned threads won't clean up

I have an upstart job which runs: exec su - pi -c 'cd /data/zeus_station/releases/20140217074914; export PORT=5100; ~/.rbenv/bin/rbenv exec bundle exec thin start -R config/config.ru -p 9000 >> ...
1
vote
1answer
63 views

Upstart: chdir stanza VS cd command

In Upstart script I can use chdir stanza to set the working directory. Also I can just execute a normal cd command inside my script section. What is the difference between this two approaches? When ...
0
votes
0answers
90 views

Installing Upstart on Centos 5.10 Final… pkg-config dependency issue

I am trying to install upstart version 1.11 from source on a Centos 5.10 Final box. BTW i don't have option or privileges to upgrade this. I am at this point where it is complaining about the ...
0
votes
1answer
313 views

Ubuntu: Tomcat upstart script. Logs end up in upstart log

I have a simple upstart script for tomcat. Here is the chef template: description "Tomcat Server" start on runlevel [2345] stop on runlevel [!2345] respawn respawn limit 10 5 # run as non ...
1
vote
1answer
67 views

Upstart and process substitution

So I want to use the following in my script stanza: forever -l >(tee $QW_LOG_DIR/webserver.log | logger -p user.info -t '[QW]') start webserver.js However, that doesn't work for at least two ...
0
votes
1answer
119 views

Ubuntu — Application global environment variables

So I have an application I am deploying to an Ubuntu 12 server. My application has several "parts" to it: There's a web server, run as part of an upstart script There are cron jobs There are ...
1
vote
0answers
182 views

ubuntu upstart permission error when writing to log on a non admin user

I have a simple upstart script: start on started network-services respawn respawn limit 100 5 setuid www-data exec node /var/testapp/app.js >> /var/log/testapp.log 2>&1 post-start ...
0
votes
0answers
116 views

How to put ubuntu upstarts output to console

I am on a embedded System using Linaro 12.10, which is basiclly a ubutu for arm. It works fine and I see the Boot on a serial Console: Starting kernel ... Booting Linux on physical CPU 0x0 Linux ...
0
votes
1answer
386 views

Why is Upstart not starting uWSGI?

I am trying to set up a django project on my VPS. I am trying to get a uWSGI Emperor to run and thus spawn vassals. I have set up all my config files as suggested by numerous websites including the ...
-2
votes
1answer
477 views

Run Jar file on Ubuntu at system startup

I'm trying to get a .jar file to run at startup on an Ubuntu machine, but I'm not getting anywhere. I've tried the instructions here ...
2
votes
0answers
57 views

upstart-monitor with CLI option fails to start in Ubuntu Server 13.04

When I try starting upstart-monitor on Ubuntu Server 13.04. I get the following error: Traceback (most recent call last): File "/usr/bin/upstart-monitor", line 195, in <module> class ...
1
vote
0answers
157 views

How do I run WEBrick as an upstart job?

I need to get WEBrick (basically a Rails web server) to work using upstart, but cannot figure out what should I write in script. The following gives me an error: chdir /rails-app exec su -s /bin/sh ...
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
97 views

Upstart event when network connectivity to a specific server is available?

Is there a way in upstart to code an event to start when network connectivity to a specific machine becomes available? Something based on a ping result would work in my case. The task being started ...
1
vote
1answer
31 views

Upstart scripts causing problems

I like to start little web servers on boot. I've been using upstart, but often my scripts fail, causing important services like sshd to fail to start. What's a safer way to do this? ...
1
vote
0answers
240 views

After installing upstart Raspberrypi gets stuck in boot

I recently installed upstart blindly replacing things I shouldn't of been. The results was that now my raspberry pi is stuck on Setting up X socket directories... /tmp/.X11-unix /tmp/.ICE-unix ...
1
vote
1answer
2k views

Upstart Help: Change Ubuntu 10.04 Service Boot Order

I am having an issue with the order in which services start up in Ubuntu 10.04. My workstations are configured to use winbind to connect to my Domain Controller for authentication. The problem is ...
3
votes
1answer
908 views

Kill Infinite loop at Upstart's run level

One of my applications is at a infinite loop in the runlevel 1 by printing No protocol specified continuously after running startx -- :1. The run level does not listen to my commands given at the run ...
0
votes
3answers
1k views

Linux: How to start Skype (or other program) only when I'm online?

I've added Skype to my "Startup applications" list, so that it starts automatically after I log in. (This is on Ubuntu 9.04 Jaunty, with the Gnome desktop) However, I frequently use my laptop ...