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
8 views

Upstart not resolving symlink

I have my server.conf in a web project and I have symlinked it to the /etc/init directory like so. $ ln -s /var/www/[mysite]/system/server.conf /etc/init/server.conf The config file is fine, the ...
39
votes
2answers
31k views

How can I replace upstart with systemd?

Since Mark Shuttleworth decided to switch to sytemd in the future, I was wondering if I can install it on my Ubuntu now?
4
votes
3answers
3k views

How To Launch GUI App With Upstart Script

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 ...
0
votes
0answers
122 views

ubuntu 16.04 blank screen at bootup

I am having a problem when booting up Ubuntu (both 15.10 and 16.04). I am getting the following error: $ cat ~/.xsession-errors openConnection: connect: No such file or directory cannot ...
0
votes
0answers
40 views

14.04 LTS Server - Ubuntu won't complete boot for no clear reason

My Ubuntu 14.04 server does not boot anymore and I have not been able to find a clear reason for that in the logs. I do not have physical access to the server, however I can start a rescue GRML live ...
1
vote
1answer
217 views

How to make a respawning Hadoop Upstart job?

You can start a nodemanager instance by running yarn-daemon.sh start nodemanager. If you make an upstart job out if this, you have two problems: The yarn-daemon.sh script will be executed constantly ...
50
votes
2answers
58k views

How do I debug Upstart scripts?

For some reason I'm getting an error during apport upgrades, the cause of which is % sudo service apport start start: Job failed to start Under sysvinit, I could debug this kind of problem by ...
1
vote
2answers
2k views

Failed to connect to socket /com/ubuntu/upstart: Connection refused: Errors were encountered while processing: runit

I'm using Ubuntu 15.04. Whenever I tried to install any package, I got the error message in the title. How can I get rid of this annoying error message? :~$ uname -a Linux LongerVision001 ...
0
votes
0answers
20 views

how to write upstart script for a background service (db)

I am on ubuntu 14.04 server and I am trying to write script for my database. i added this file to /etc/init/neo.conf: description "neo4j upstart" start on startup stop on shutdown script echo $$ ...
0
votes
1answer
233 views

error with runit and upstart\

Yesterday i try to install some package and i get error about runit . So i search on Internet and a fix was to sudo dpkg --force runit i did it but as i tried today sudo apt-get update i got ...
7
votes
3answers
6k views

Best way to make a shutdown hook?

Since Ubuntu relies on upstart for some time now, I would like to use an upstart job to gracefully shutdown certain applications on system shutdown or reboot. It is essential that the system's ...
1
vote
0answers
14 views

xrandr reporting wrong resolution after booting from script started with upstart

I have a script in /home/username/.config/upstart myscript.conf ... description "my startup scripts" start on desktop-start exec ~/scripts/startup.sh start that startup script eventually calls ...
0
votes
1answer
19 views

Upstart virsh commands fail on startup even with libvirt-bin running

I have an upstart job that is configured to run a one-off script with a few virsh commands to import and start VMs. This job is configured to start on started libvirt-bin. However, I'm encountering ...
0
votes
0answers
142 views

Debugging Upstart script for nodejs process

My Upstart script is as under. It looks long, but its mostly comments. If you can bear to read through it, then I get an error like .... typeerror: arguments to path.join must be strings... ...
0
votes
0answers
16 views

Facing issue with Ubuntu 15.10

I'm using the latest version of Ubuntu, and today I install Tomcat for hobby project, spend some time opening nautilus for a short period of time. After then rebooted the system and now I just see ...
474
votes
7answers
568k views

How to enable or disable services?

I read about how to enable and disable services in Ubuntu and it seems that there are different possibilities to manage them. The first method I found is update-rc.d to add new services to startup, ...
2
votes
1answer
57 views

Upstart Script not catching mono application's start or stop

I've used the below script both with and without expect fork. It's purpose is to start a .exe file on start-up, and if it fails, to restart it. The mono application must be started by root/sudo to ...
0
votes
2answers
739 views

Upstart and Node js: Cannot find module

I'm trying to setup upstart to run with my Node js and Socket.io server. /etc/init/quizens.conf env NODE_BIN=/usr/bin/node env APP_DIR=/root/quizens env SCRIPT_FILE="quizens.js" env ...
1
vote
0answers
13 views

Power on-off-on needed to boot laptop

Toshiba Satellite C660 01C01H 32-bit laptop (specifications at http://bit.ly/1PPMN30) Ubuntu 14.04.4 Trusty Tahr LTS When I switch on the laptop the Toshiba boot screen fails to appear OR the screen ...
1
vote
2answers
879 views

How can I stop mongodb from starting on system boot

I installed mongodb for learning purpose, the problem I am facing is that it starts on system boot and consume resources even if not being used. I want it to be removed from system boot, how can I do ...
0
votes
0answers
53 views

Gogs in Ubuntu 15

Hi I have install gogs in Ubuntu 14 but after I upgrade to Ubuntu 15 I got the error: Job for gogs.service failed because the control process exited with error code. See "systemctl status ...
4
votes
1answer
2k views

Will it be possible to switch from systemd to upstart from 15.10 onwards?

In Ubuntu 15.04, it is possible to switch from systemd to upstart. Will this ability be retained going forward?
2
votes
0answers
30 views

What was the behavior before modern init replacements?

Based on this excellent answer on changes to init daemons: What is Upstart? ...it seems like modern init replacements including upstart and systemd have added functionality because they are event ...
0
votes
0answers
12 views

Run Upstart session job at login and with networking

I have an Upstart Session Job at ~/.config/upstart/desktop-bg.conf. I want the job to run on the desktop-start event (on login) and when networking is up. The job calls a python script that fetches an ...
1
vote
0answers
185 views

16.04 beta — problems with samba (systemd related) and nautilus (launcher related)

I decided to take the plunge on doing a do-release-upgrade tonight from 14.04.4 to 16.04. Went pretty well -- the display died mid-upgrade and I wasn't able to ssh in to check on things, so I had to ...
0
votes
1answer
1k views

FATAL: Module rtc not found

Upstart gives "unknown job" error when I try to start the server with $ start <my-app-name>. I found this in the logs: z@ubuntu:/var/log/upstart$ sudo zcat module-init-tools.log.1.gz FATAL: ...
1
vote
1answer
128 views

Run MongoDB service as daemon of SystemD on Ubuntu 15.10

MongoDB just supports versions of Ubuntu Long Term Support (LTS). The last is Ubuntu 14.04 LTS, where the init process is managed by Upstart proprietary of Canonical. However I'm using Ubuntu 15.10 ...
17
votes
3answers
46k 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 ...
1
vote
0answers
15 views

Need to restart rinet manually on reboot

I redirect an internet connection through my desktop from WiFi to Ethernet for use by a Raspberry Pi. I then use rinet (manpage) to redirect one port back through the desktop so that I can access a ...
0
votes
0answers
13 views

created a upstart but it doesnt give me stop command

I created my first upstart script in /etc/initd/myapp1.conf if I reboot the instance, I can see my app is running, but I can not do sudo stop myapp1 here is my upstart script # ...
1
vote
2answers
7k views

Installed 15.04, cannot restart ssh daemon

As the title says, I installed 15.04. One of the first things I did was sudo apt-get install openssh-server. The next command was sudo restart ssh, which is greeted with an output of: restart: ...
0
votes
0answers
183 views

initctl reload-configuration command not found

Trying to follow the tomcat installation steps listed here But cant past this step $ sudo initctl reload-configuration getting the following sudo: initctl: command not found I'm not able to find ...
0
votes
1answer
53 views

Best way to deactivate Bluetooth on system startup? (with systemd and not upstart)

What is the best way to deactivate Bluetooth for every startup with systemd? There are a lot of examples, but all of them work with upstart and rc.local. With Ubuntu 15.10 rc.local is disabled by ...
0
votes
0answers
22 views

upstart tracks dead pid, and respawn doesn't happen

I have a daemon which runs in 3 stages, and in the first stage there are 3 fork()s and with some effort I could get upstart to track its PID. Now, I can do stop/start on the job. But if the job is ...
0
votes
0answers
36 views

bash command doesn't run in upstart

I'm setting up a django project following H. Percival's TDD. By the end of the chapter I setup an Upstart process to start the server with Gunicorn using Nginx as well. My upstart file ...
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 ...
0
votes
1answer
71 views

How do I start/stop failed upstart job?

I have an upstart script in /etc/init/myexample.conf. This job basically runs a java jar file. Normally, I can start and stop this using sudo start myexample and sudo stop myexample. I changed the ...
0
votes
1answer
41 views

How to use shopt command in upstart configuration file?

I am trying to create an upstart configuration file where inside the script section I am using shopt command to set the nullglob paramater - shopt -s nullglob However, with this I am getting the ...
0
votes
0answers
27 views

Restart Upstart Service From Jenkins

I have a jenkins continuous integration service running that manages the automated deployment of our software to a development machine. So far, I have successfully set up the server to copy over the ...
1
vote
2answers
676 views

Can not remove nvidia-prime package

When trying to switch 14.10 to systemd I've run into a situation: I can not remove package 'nvidia-prime' and it prevents me to install either upstart or systemd, so now my machine will not reboot. ...
1
vote
1answer
315 views

Shutdown Ubuntu using upstart

I have a process which is started by Upstart. It will try to respwan the process n number of times on failure and after that if it fails, I want to restart my Ubuntu. I tried telinit, halt etc in ...
32
votes
11answers
45k views

Why isn't my upstart service starting on system boot?

Following on from this question, I have written a simple upstart service (/etc/init/pms.conf) for my headless Ubuntu Server 11.04 box as follows: start on filesystem and net-device-up IFACE=eth0 stop ...
0
votes
1answer
79 views

Google Cloud Print server gcp-cups-connector wants password for user gcp

I'm trying to set up a Google Cloud Printer server using CUPS Connector on my 64-bit Ubuntu 14.04 computer and the Google-provided gcp-cups-connector executable. I followed the instruction of the wiki ...
0
votes
0answers
24 views

when i want to install lamp stacks or i do a update i get these runit and dpkg errors

whenever i want to install lamp stack i get these errors about dpkg and runit: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused dpkg: error ...
2
votes
1answer
173 views

Stuck on splash screen, does not progress to login manager

My login manager stopped loading, for no apparent reason, instead tty7 was a black screen I could type into but with no effect. I tried several variations of service lightdm restart service sddm ...
0
votes
0answers
62 views

Ubuntu upstart job for Redis server

I have written an upstart job for start/stop redis server. my ubuntu user is amila. Below is the .conf file code. I can start the redis server but cannot stop the server. when I , ps -ef | grep redis, ...
3
votes
1answer
136 views

How to autorun a ruby script in Ubuntu?

How hard can it possibly be to run a ruby script on startup?! Fairly tough apparently: I'm using rvm and running ruby 2.3.0. which ruby returns /home/ubuntu/.rvm/rubies/ruby-2.3.0/bin/ruby The ...
0
votes
0answers
42 views

Upstart on 15.10

How can I properly configure upstart on 15.10? Explanation: I needed MongoDB, which does not officially support 15.10. When I installed it I had a series of messages that essentially led me to ...
0
votes
1answer
93 views

How to set up systemd after failed upgrade

I recently upgraded Kubuntu via update manager from 14.04 to 15.10. Apparently a bad idea. I can now only get a loggin screen. Startx results in: (EE) Fatal server error: (EE)could not create lock ...
0
votes
1answer
257 views

Ubuntu 15.04 now 15.10 boots fine with Upstart fails to boot with SystemD

I'm not sure how to solve this problem as both 15.04 and 15.10 with systemd get me only to an emergency shell whereas upstart works just fine. Having struggled with this for a whole version, help ...