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

3
votes
1answer
3k views

Problem sourcing variables inside Upstart

I'm trying to use the variables defined in /etc/environment in an upstart script running on 12.04. I'm able to export the variable to the child process but for some reason I not able to use them in ...
1
vote
1answer
98 views

nothing is written in a file created from a upstart job

I have a program in /home/me/bin/foo, typically compiled from : // includes ... #define PATHNAME "/home/me/bin/bar.txt" int main () { FILE* f; f = fopen(PATHNAME, "wb"); // I skip the possible ...
2
votes
0answers
171 views

Is there an ncurses tool for upstart similar to ntsysv or sysv-rc-conf?

I'd like to be able to use a terminal or console to configure runlevels. I don't need the conditions for starting and stopping services to be any more complicated than sysv. I just want to base ...
2
votes
0answers
328 views

declaring dependencies in upstart

It seems as if the accepted way to specify a dependency of service A on service B in upstart is to work in the reverse dependency direction: give service B a start on starting A stanza. I'd like to ...
0
votes
1answer
512 views

How to check if openvpn is connected in Upstart?

I need to run a script after mysql and openvpn are started (Ubuntu for ARM). I can succesfully run the script with upstart with this .conf: # my upstart for logging boot start on (starting openvpn ...
4
votes
5answers
14k views

How do I change the user Transmission runs under?

I installed Transmission through a PPA and the daemon starts on boot. I want to change the user that runs the daemon because I want the downloaded files to be under the same user as my XBMC ...
1
vote
1answer
972 views

Console prompt during boot (for truecrypt)

In short: Please provide me with a up-to-date best practice solution to mount my Truecrypt volumes at boot with secure password prompt! I may accept a answer that has nothing to do with Truecrypt and ...
0
votes
1answer
147 views

Tips on creating a upstart script

I have a few questions that I'm looking for some pointers for. Once I create my upstart .conf file, how exactly do I "install" it and activate it? How do you go about debugging the script while ...
1
vote
1answer
188 views

Is $RUN a built in command to execute?

I have a .sh script that starts a java service of mine (I didn't write this). Can someone explain how this actually executes? start() { .. .. # setup classpath . $ROOT/bin/_cp.sh ...
5
votes
3answers
2k views

How can I tell upstart to restart a service when a different service is restarted?

I've an OpenERP server running on one of my servers. It's started by a traditional /etc/init.d/ script. It uses a PostgreSQL database and needs a manual restart every time PostgreSQL is restarted. ...
0
votes
1answer
170 views

Redirecting /dev/null to some other device

Is it possible to redirect, ie create /dev/null as non-null device, like /dev/console or /dev/stdout? This obviously has to be done before init runs create creates a standard /dev/null. Upstart seems ...
2
votes
2answers
2k views

Configuring mongo DB to work with NTFS drive

I have 120 GB SSD Drive with two partitions (NTFS with Windows and ext4 with Ubintu) and 2TB NTFS HDD shared between Windows and Ubuntu. I configured my HDD to be properly mounted on system boot: # ...
3
votes
1answer
553 views

Simplest way to make a command run after system reboot

I have a server which exists to run one little Django application. If the server reboots, I want Django to start again: nohup /opt/myapp/manage.py runserver ... I'm having trouble finding a simple ...
5
votes
1answer
6k views

How to Debug when upstart hangs?

I have recently much trouble with services started by upstart. Currently I have problems with avahi-daemon and rsyslogd. Most of the time i had that problem on Ubuntu >= 12.04. What's the problem? If ...
7
votes
4answers
6k views

How to determine status of upstart job in bash script?

How do you determine if an upstart job is running inside of a Bash script? That is I need a "boolean" value to do something like: #!/bin/bash if [ determine_if_job_x_is_running ]; then echo "I see ...
4
votes
1answer
3k views

Why does upstart fail to start my juju service with Unknown job: juju-ubuntu-0?

I'm having issues launching juju on an lxc container through regular juju deploy commands: juju bootstrap juju deploy ubuntu The ubuntu juju status continually says pending. The LXC starts, and I ...
2
votes
1answer
2k views

How to add startup services?

I'm on 12.10 and I use Synergy to share my mouse between my laptop and desktop monitors. I tend to start the synergys daemon manually, but I'd like for it to start automatically after boot. Now I've ...
1
vote
0answers
922 views

Upstart job not running at boot

Hi all I have been trying to figure out my problem for some time and think it is now time to ask someone who know more than me. Hopefully this is only a simple solution for someone in the know ...
14
votes
4answers
19k views

Upstart is not seeing my new script

I've added a new script to /etc/init/ called minecraft.conf which contains the script: start on startup stop on shutdown respawn respawn limit 20 5 script export HOME="/root" exec ...
3
votes
2answers
374 views

What happens to manual Upstart services on shut down?

If using the manual keyword in an init or override Upstart script, it is not clear whether the services shut down process will be initiated or it will just be killed on shut down. For instance, will ...
3
votes
1answer
10k views

Why isn't rc.local executed?

I am PXE booting some Ubuntu machines in a cluster. All of a sudden my rc.local script has stopped working. I've check the permission of /etc/rc.local: -rwxr-xr-x 1 root root 1087 Jan 14 11:04 ...
8
votes
1answer
6k views

Upstart conf changes do not reload after edit

After I make some changes to an upstart conf file upstart does not reload the new changes until I reboot the system start on filesystem or runlevel [23] stop on runlevel [6] respawn expect fork ...
5
votes
1answer
328 views

upstart init script remains on apt-get remove

I just created my first .deb file ever from a Python script. I included a package.upstart file under package/debian and all installed great. However, I noticed that apt-get remove package leaves the ...
11
votes
4answers
7k views

Allow non-sudo group to control Upstart job

I'm trying to set up an Upstart job to run on system startup, and that can also be started/stopped by members of a group other than sudo. With a previous version, I usedupdate-rc.d and scripts stored ...
1
vote
1answer
265 views

Using Upstart like old fashion init script

How can I use Upstart and have the same we use to have by using "# Should-Start:" at the BEGIN INIT INFO of the init script? Is it there any way I can tailor the "start on started" based on a ...
1
vote
2answers
2k views

Postgresql - configuring as Upstart job problem

I need Postgresql configured to start with the Upstart system because I use Upstarts events to start another app which depends on pgsql to be running. This is the tutorial/script I've used: ...
2
votes
1answer
151 views

How to check in script if upstart event was emited?

I am running remote connection on session start using xdg autostart script. But sometimes network interface needs more time to start. So I need to check if network is up. Is it possible to check if ...
12
votes
2answers
5k views

How system services are started in 12.10?

One thing that always confused me in Ubuntu was how system services are started. I know that Ubuntu uses Upstart and supports SysV, but which one is used to start the services? This matters when you ...
2
votes
1answer
132 views

With Upstart what does it mean in terms of performance to have a “initramfs-less boot support”

Reading the latest Upstart version (Upstart 1.6 right now), I saw the following line: Added initramfs-less boot support Does this mean that the step for initramfs can be skipped? Will the booting ...
2
votes
0answers
343 views

Quickly stop all network services except sshd (or boot with only sshd running)

I have an Ubuntu Server 12.04 box acting as a home file server. At times I would like to be able to brings down all my normal network services (nfs-kernel-server and friends, netatalk, nmbd, smbd, ...
1
vote
3answers
936 views

Upstart job: Run task once per event

I'm a little confused regarding how jobs start on Upstart events. To illustrate my misunderstanding, I have four Upstart jobs that look like the following: Job 1: start on local-filesystems task ...
3
votes
2answers
2k views

How to move over from init.d to upstart for nginx

I have an init.d script for nginx that normally works fine. However, after a reboot it doesn't work properly and the worker process would die leaving just the master process. nginx has some mongodb ...
7
votes
6answers
20k views

Why doesn't network-manager start at boot?

I think this started happening a couple of months ago when I upgraded from 10.04 to 12.04. Whenever I reboot, network-manager does not start. I have to manually run sudo start network-manager, and ...
2
votes
1answer
3k views

cannot get upstart to run user job

I am trying to get upstart start a user job during the boot of my machine. I have my conky.conf upstart config file in my $HOME/.init directory. Wenn I run "start conky" I get this error: ...
1
vote
1answer
40 views

Upstart 1.6 Doubts about performance

With Upstart 1.6, I have a couple of questions: What does it mean it is able to "boot without initramfs". Does it mean it will boot faster without loading an image to RAM (Or doing it with an ...
2
votes
2answers
5k views

Why my upstart script doesn't run?

I don't understant why my script is not running. Here is what I did (I'm using Ubuntu 10.04). I wrote a mountFTP.conf script: description "Mount the remote FTP for sync" start on started tty1 ...
2
votes
2answers
8k views

How to force dhclient to run?

I usually run with eth0 config'd statically from info in /etc/network/interfaces, but sometimes need to use a dhcp acquired config. Running dhclient just tells me it's now an upstart job and suggests ...
1
vote
2answers
224 views

How do I startup the Computer with an alarm and run a scheduled program?

I want to start my torrent downloading at night after 11 PM so I need my computer to start automatically at 11 PM and then log in to an account and start a torrent program. I know that I can start up ...
0
votes
1answer
406 views

X : conditional xorg.conf file during startup

I've got a computer which I use at a couple of different sites, and I've got differen monitors at those sites. What I've done is that I've ceated different xorg.conf files for each of these sites. ...
2
votes
1answer
215 views

Failed to use upstart to control startup dependency

In a server I have memcached and apache2 installed, I want my apache2 ONLY can start if memcached is started, so in my apache upstart script, I added the line From start on runlevel [2345] To ...
0
votes
1answer
74 views

For processes to be up and running all the time

I want my python program sample.py to be always up and running. I have read some things and asked people about ways to do this. So far I have following options - Upstart Cron I am trying things ...
2
votes
1answer
4k views

Ubuntu 12.04, why service procps start doesn't start procps?

I have been trying to get some settings in /etc/sysctl.conf to take effect upon rebooting. So, I did the following as the root user on this node running Ubuntu 12.04 LTS 64bit # service procps ...
2
votes
1answer
1k views

Boot computer to text mode using kernel parameters

Referring to this question: How to remove the graphical user interface? The answer of modifying /etc/default/grub to have GRUB_CMDLINE_LINUX_DEFAULT="text" would be great, but unfortunately I don't ...
1
vote
1answer
2k views

What is the current state of Ubuntu's transition from init scripts to Upstart?

What is the current state of Ubuntu's transition from init.d scripts to upstart? I was curious, so I compared the contents of /etc/init.d/ to /etc/init/ on one of our development machines, which is ...
7
votes
2answers
7k views

How to diagnose Upstart errors?

I have an Upstart conf file in /etc/init which starts fine if i start it manually like this: sudo initctl start myconf If i run it without the sudo command i get the error name=(unset) error, which ...
14
votes
2answers
41k views

How can I disable avahi-daemon?

How can I disable avahi-daemon and can you explain to me how it runs if it appears as a service but it itsn't in rcN.d? You can stop reading here. In fact, please do unless you want to TEACH a noob ...
0
votes
1answer
296 views

Apache doesnt start after upgrade to 12.10

during the upgrade process I was wondered for "replace init.d", and I said "keep", not replace. Now, apache2 is not working. I tried removing and upgrading again, but doesnt start. I have this error ...
1
vote
0answers
279 views

Upstart service stops when I log out

I've written an upstart script I want to run when my server starts up, only it does not. It will run when I call sudo start wiki, where wiki is the name of my service, however it stops running when I ...
3
votes
2answers
502 views

Why does service service_name status give different responses for different services?

Running the "service service_name status" command gives three different types of output when three different service_names are used. I tried with atftpd, apache2, and isc-dhcp-server, as shown below. ...
6
votes
1answer
5k views

How do I choose which way to enable/disable, start/stop, or check the status of a service?

If I want to start a system installed service, I can do: # /etc/init.d/some-svc start # initctl start some-svc # service some-svc start # start some-svc If I want to disable a service from running ...