Upstart is an event-based replacement for the /sbin/init daemon which handles starting of tasks and services during boot, stopping them during shutdown and supervising them while the system is running.

learn more… | top users | synonyms

0
votes
0answers
12 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
6 views

grep fails in upstart script

I have an upstart configuration for a service which needs to check the existance of a process on it's startup. This sounds fairly easy but I'm already trying for 3 hours to get this thing solved and ...
1
vote
1answer
29 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, ...
1
vote
1answer
71 views

How to change hostname via kernel command line on ubuntu 12

I booted a guest vm on xen, and I want to assign guest-domU's hostname in config file. like this ... extra='ip=::::myguest-vm-hostname::dhcp' ... It is a kernel command line to setting netboot ...
0
votes
0answers
12 views

mutually exclusive upstart tasks

I have a set of upstart tasks which share an embedded database. When I start one of these tasks, and another is already running, I want the task to get queued up, and run when the other task is ...
0
votes
1answer
31 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 ...
0
votes
1answer
39 views

Can't start Rails app with upstart [closed]

I can manually start my Rails app with rails server -e production, but if I try via upstart, my app doesn't run. https://github.com/mcandre/doesrailswork/blob/master/upstart.conf
1
vote
1answer
28 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
146 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 ...
0
votes
1answer
46 views

Emit upstart events as regular user

I want to create a situation where something unprivileged user does (via SSH) triggers an event that causes an upstart job do perform some action. The activities rely on filesystem changes, so I ...
2
votes
2answers
365 views

Automatically mounting Truecrypt volumes at user login time

I need to mount a Truecrypt volume automatically at user login time. This volume is specific for each user. I'm not sure how to proceed since I'm not extremely familiar with Linux and the various ...
0
votes
0answers
158 views

SquidProxy status:Unknow job :Squid

I have an issue in Centos 6.3. I installed Squid from compressed source archives(.tar.gz), I create an /etc/init.d/squid file, that run well because I view with the command ps -aux, that is running: ...
0
votes
1answer
106 views

Safely forking a low-privileged child process with su vs. sudo

I am trying to run Node.js as an unprivileged user (dmitry in this case). Hoping someone can confirm or, as necessary, please elaborate upon what I'm seeing below.: Using Ubuntu 12.04 and upstart, I ...
2
votes
0answers
165 views

upstart node.js cant save files, wrong permissions?

I got my own linode server the other day and moved a small nodejs / express I was playing around with over from an aws linux. Everything works great, but if I launch the app with upstart it doesnt run ...
2
votes
1answer
317 views

How to depend on an upstart job from an init script on Ubuntu 12.04

I am using Ubuntu 12.04 LTS and this system uses primarily upstart jobs. Unfortunately my system also depends on a manually compiled dbmail server, which only has a init script, but no upstart script. ...
2
votes
2answers
122 views

Upstart script for Sphinx

I am trying to get Sphinx running with Upstart on Ubuntu, but the only script I've found isn't working and seems to be more complex than I require. Could someone provide me with a basic Sphinx ...
1
vote
0answers
321 views

Wireless network interface ra0 does not start at boot

I recently installed USB Wireless Adapter based on Ralink RT5370 chip on my Ubuntu 10.04. Manufacturer drivers are installed properly and now I have ra0 wireless interface configured in ...
3
votes
0answers
436 views

Starting Redmine at boot using upstart on Ubuntu

So after installing redmine from the repositories on Ubuntu 12.04, i've tried to create an upstart script (see below) so it would start up at boot time. While service redmine start does start ...
0
votes
2answers
955 views

Trouble using Upstart to launch Redis as redis user

I'm trying to launch redis-server as a user (called redis) via Upstart. My /etc/init/redis-server.conf looks like this: description "redis server" start on runlevel [23] stop on shutdown exec sudo ...
0
votes
1answer
221 views

Making upstart job redirect output as unprivileged user

I am currently making an upstart job run as an unprivileged user like so: start on started mongodb stop on runlevel [06] respawn respawn limit 10 100 env NODE_ENV=production pre-start script ...
0
votes
2answers
764 views

Writing simple upstart script

I'm trying to write a simple upstart script for my ubuntu server, which starts vnc4server. But it does not work. Here's the script: # vnc-server.conf start on runlevel [2345] stop on runlevel ...
3
votes
1answer
1k views

How to correctly shutdown ubuntu in single-user mode?

I have searched a lot,only to found that many people came across this problem. By adding rw init=/bin/bash to the end of the vmlinuz line,I can enter the single-user mode of UBUNTU 10.04 LTS but,when ...
5
votes
2answers
374 views

Controlling Upstart job as unprivileged user

What's the best way to allow an unprivileged user to control an upstart job? By controlling an upstart job I mean starting/stopping/reloading/restarting it: start myservice I can imagine one way ...
21
votes
6answers
47k views

How do you disable an upstart service in ubuntu 10.10?

In 10.10 upstart is being used instead of sysvinit. It's possible to remove annoying upstart services which you do not want by removing the appropriate file in /etc/init/blah.conf However, this ...
0
votes
2answers
617 views

Upstart: accept user input to switch xorg.conf

I'm trying to get a startup script requiring user input running before gdm starts (the script should allow me to choose from a list of xorg.conf's the one I'd like to use for the current session). ...
2
votes
1answer
545 views

Is it safe to remove sysvinit package in Debian sid?

Currently, I have some packages my own using upstart, they are working with the stable branch of Debian. I'm going to switch to sid/unstable, and then the warning comes: WARNING: The following ...
1
vote
2answers
1k views

How to restart a service each hour, in upstart?

I have an upstart service defined as: /etc/init/sshproxy.conf description "Lenik's secret tunnel thru *.ssh.myserver.com" author "谢继雷 (Lenik)" start on (net-device-up IFACE!=lo) stop on ...
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
3answers
2k views

Ubuntu, control the init startup

Ubuntu uses upstart instead of sysvinit. However there are still runlevels and the links in them. I have installed tor and it has added itself to the startup of the OS. Now I want to remove it and ...
1
vote
1answer
2k views

How can I write a fail-safe upstart script that starts an application with the necessary permissions?

I'm planning on setting up a server using Ubuntu Lucid Lynx, which uses upstart. I'm not finding the documentation too intuitive, so I'd like to ask for a solution for my specific problem. I'm ...
2
votes
2answers
1k views

Autostart SSH tunnels on load (Ubuntu)

Every time I login into my computer I start a SSH connection to a remote computer for database work. How can I automate this in Ubuntu so that I don't have to type this in each time I login to my ...
3
votes
1answer
4k views

How to make PostgreSQL start at boot time in Ubuntu?

Every time I boot my computer, I need to start Posgtres manually via sudo /etc/init.d/postgresql-8.4 start It was an easy task to make it start automatically with Init in place: just add a symlink ...
3
votes
1answer
832 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
2answers
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 ...
50
votes
7answers
15k views

Running upstart jobs as unprivileged users

What's the canonical way to have an upstart job change its userid and run the script as an unprivileged user? Obviously one can use su or sudo, but this seems hacky (and can generate needless log ...