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

1
vote
1answer
425 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
2k 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
1answer
594 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 ...
4
votes
1answer
464 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 ...
6
votes
1answer
4k 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
565 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 ...
2
votes
0answers
801 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 ...
4
votes
1answer
1k 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
3k 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 ...
1
vote
1answer
495 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
1k 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
3k 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
1k 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 ...
25
votes
6answers
64k 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 ...
3
votes
1answer
1k views

Ubuntu startup file location

Ubuntu does not use the inittab file any longer so where can one find the set of files that ubuntu executes on start after the init process is started?
0
votes
2answers
778 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
915 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
3k 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
4k 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
973 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 ...
85
votes
8answers
36k 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 ...