Questions tagged [upstart]

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.

Filter by
Sorted by
Tagged with
938 votes
9 answers
1.5m 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, ...
NES's user avatar
  • 33.2k
22 votes
5 answers
23k views

"Unable to connect to Upstart" error when installing git-all

I am using 15.04. So I'm working with git and I installed the standard version. I set up the ssh keys and was able to clone one of my repositories to the correct folder. Everything was working great ...
Electronicks's user avatar
28 votes
3 answers
14k views

Rationale for switching from upstart to systemd?

The larger change that comes with Ubuntu 15.04 is the switch from upstart to systemd as the default for managing boot and system service startup. Could anyone adequately explain to a non-technical ...
Nikos Grigoriadis's user avatar
122 votes
2 answers
134k views

What's the difference between "Service" and "/etc/init.d/"?

I've been managing server installations both on and off Ubuntu flavor for some time - I've become quite adjusted to /etc/init.d/ for restarting servcies. Now I get this message: root@tatooine:~# /etc/...
Marco Ceppi's user avatar
  • 48.1k
13 votes
2 answers
98k views

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

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 3.19.0-25-...
Pei JIA's user avatar
  • 370
48 votes
2 answers
50k 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?
blade19899's user avatar
  • 26.7k
3 votes
1 answer
4k views

How to change cron log level?

I replaced exec cron with exec cron -L 15 the run sudo service cron reload, sudo service cron restart but nothing changed. Cron doesn't log the end of jobs and doesn't log failed jobs. I hade no ...
max5555's user avatar
  • 317
51 votes
5 answers
232k views

vivid - failed to connect to upstart: connection refused

Just updated via do-release-upgrade and now certain upstart jobs such as fail2ban and plexmediaserver will not start (have tried reinstalling) $ sudo service fail2ban start Job for fail2ban.service ...
matty87a's user avatar
  • 511
33 votes
2 answers
35k views

How can I make sure one Upstart job starts before other Upstart jobs?

This is a general Upstart question, but let me use a specific case: Centrify is a NIS to ActiveDirectory gateway. It needs to load before any service that will depend the authentication service that ...
Mark Russell's user avatar
  • 7,376
30 votes
2 answers
44k views

Where are Upstart log messages on Ubuntu 13.X?

On Ubuntu 12.04, I can find Upstart log messages in /var/log/syslog. Commands: # initctl log-priority info # initctl emit hello Log: Apr 1 01:56:56 precise64 kernel: [ 8365.820425] init: ...
Bradd Szonye's user avatar
8 votes
3 answers
11k views

How do I run a script on Unity login/logout?

I have two scripts - one to mount some folders over SSHFS - and one to unmount. I would like to launch the mount script when my default Ubuntu desktop is launched (after I log in at the graphical ...
aSteve's user avatar
  • 449
3 votes
5 answers
28k views

After Upgrading to 12.04 I can't get to the login screen

I cannot go pass the black screen and the following shows up on my screen after upgrading and rebooting with the Ubuntu update manager from 11.10 to 12.04: ata_id [27]: HDIO_GET_IDENTITY failed for '/...
Aaron Chung's user avatar
199 votes
9 answers
460k views

Command to list services that start on startup?

Is there a command to list services that run on startup? I imagine it would involve parsing /etc/init.d/, and the various /etc/rc.* directories.
Eric H's user avatar
  • 2,093
68 votes
2 answers
103k 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 ...
poolie's user avatar
  • 9,241
44 votes
9 answers
153k 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 ...
Robottinosino's user avatar
16 votes
1 answer
4k views

Why don't custom upstart job names tab complete in the service command?

I'm used to create upstart services with a file in /etc/init/<service>.conf and it works perfectly fine, the only thing I'd like to is to have tab completion the same way that every service in /...
José F. Romaniello's user avatar
11 votes
2 answers
21k views

How do I configure upstart to run a script on shutdown when the process takes longer than 10secs?

I am running ubuntu 11.10 in a virtual machine (VirtualBox) to learn more about development in linux. I am using a git repository to save my work and have written a script to bundle my work up and ...
Tiris's user avatar
  • 129
9 votes
3 answers
9k 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 ...
Binarus's user avatar
  • 810
5 votes
1 answer
13k 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 /etc/...
ChosSimbaOne's user avatar
5 votes
1 answer
6k views

Synaptics driver doesn't load sometimes

Sometimes (randomly), the synaptics touchpad driver won't load on bootup. When reading /var/log/boot.log, i don't see anything touchpad-driver-like being started when this happens. But the file /dev/...
s3lph's user avatar
  • 14.3k
1 vote
2 answers
4k 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: http://...
U2ros's user avatar
  • 475
66 votes
2 answers
478k views

How to start and stop a service? [duplicate]

Possible Duplicate: What’s the recommended way to enable / disable services? Are there any other command to start stop restart service in ubuntu other than the below following. service --status-...
user7044's user avatar
  • 3,871
29 votes
5 answers
42k views

What is Upstart?

Which operating systems besides Ubuntu use it?
akshatj's user avatar
  • 13.2k
19 votes
2 answers
16k views

What events are available for Upstart?

Is there a list of available events that can be used for Upstart? For example start on local-filesystems so local-filesystems is an event but when is it triggered and what other events are there?
user avatar
17 votes
1 answer
20k views

Migrate basic upstart script to systemd

I just upgraded a server from Ubuntu 14.10 to 15.04, and a couple of services that I start via custom upstart scripts are no longer running. My understanding is that I need to re-write them as ...
trvrm's user avatar
  • 273
11 votes
8 answers
74k 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 ...
bstpierre's user avatar
  • 2,076
3 votes
2 answers
3k views

.cache/upstart/Unity7.log growing to consume the entire free disk space. Python cypto suspected [closed]

~/.cache/upstart/unity7.log is growing to consume the entire disk ~130GB in 7-10 hours. If I tail the file I get: xxxxx@xxxx-xxxxxxxx:~/.cache/upstart$ tail -f unity7.log extern "Python": function ...
RMJ's user avatar
  • 31
3 votes
6 answers
26k views

Upstart can't start MySQL

After an installation of MySQL, I get a few errors and I can't run the MySQL daemon. I've tried uninstalling and reinstalling several times, and I'm not sure what's going on. Here's a snippit of what ...
Ian Hunter's user avatar
2 votes
1 answer
4k 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: dre@dre-...
dre's user avatar
  • 151
1 vote
1 answer
12k views

How do I disable unnecessary services without uninstalling them in Ubuntu 15.10?

There are some daemons I make zero use of and would like prevent from autostarting, those include avahi, zeitgeist, telepathy, apport and some others. Needless to say I'd like them not to start. Can ...
Ivan's user avatar
  • 57k
0 votes
1 answer
3k views

15.04 Error updating boot sequence update-rc.d

I am trying to get Sickrage to auto start, and I'm hitting a wall at the command sudo update-rc.d sickrage defaults Here is the error: initctl: Unable to connect to Upstart: Failed to connect to ...
therza's user avatar
  • 21
0 votes
1 answer
2k views

Issue starting a demon process at startup in Ubuntu

I tried Starting Deamon process. I am trying to run this command during startup to start DTN2 deamon using command dtnd -c DTN2/dtn/dtn.conf -o DTN2/dtn/log -d in ubuntu 14.04 I made this as a shell ...
Don's user avatar
  • 103
37 votes
12 answers
73k 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 ...
Kent Boogaart's user avatar
34 votes
6 answers
66k views

Upstart script doesn't start

Ubuntu 10.04 I have created this upstart script (/etc/init/pure-ftpd.conf): # pure-ftpd - FTP server description "Pure-FTPd server" start on filesystem stop on runlevel S respawn respawn limit ...
Juan Simón's user avatar
  • 1,703
20 votes
2 answers
25k views

How do I set up a service?

I have a script that I would like to run as a service on my Ubuntu Server 11.04 headless box. That is, I want to have the correct files under /etc/init.d/ and to be able to control it via the service ...
Kent Boogaart's user avatar
19 votes
3 answers
20k views

Why does upstart keep respawning my process?

I wrote an upstart script to launch a daemon inside a tmux session. It works well and respawns the process if it dies unexpectedly, but I can't seem to stop it manually. The job (called bukkit) looks ...
passy's user avatar
  • 1,139
17 votes
1 answer
14k views

SysV, Upstart and systemd init script coexistence

On my system (16.04), there are the files /lib/systemd/system/network-manager.service and /etc/init.d/network-manager, for example. I don't understand how (and why) this works. I always restart ...
user2061057's user avatar
15 votes
6 answers
57k views

How to disable GDM from being automatically started?

After Ubuntu Server 12.04 installation, I installed Xubuntu just to have a minimal GUI: sudo apt-get install x-window-system-core sudo apt-get install --no-install-recommends xubuntu-desktop gparted ...
josircg's user avatar
  • 1,239
14 votes
2 answers
26k views

How do I start jobs as a non privileged user in Upstart?

I'm using last upstart version for ubuntu 10.4 LTS. upstart is launched with --debug kernel flag. I'm making a custom job configuration for nzbget daemon. Basically, this job has a pre-start script ...
ashe's user avatar
  • 141
11 votes
1 answer
47k views

How to config start services with Upstart?

Since upstart 1.5 comes with Ubuntu 12.04, bum and sysv-rc-conf is no longer effective on it. How can I config?
Honghe.Wu's user avatar
  • 397
11 votes
4 answers
8k views

Slow boot after clean install of Natty

The time have risen from 20-25 sec in Meerkat to 35 sec in Natty. I do not know if it is ureadahead but made a bugreport of it in launchpad. I tried Fedora shortly before installing Natty. They use ...
AlMehdi's user avatar
  • 552
10 votes
2 answers
17k views

How to remove systemd from Ubuntu 16.04 and prevent its usage

I was able to enable upstart and disable systemd with commands that follows, but I was not able to prevent its auto re-installation when invoking apt-get install lxde (I am used to a serious server ...
giorgio's user avatar
  • 189
8 votes
2 answers
5k views

Upstart script that depends on init.d scripts?

I have an upstart script to start a custom nodejs app. The app depends on couchdb and elasticsearch. couchdb and elasticsearch provide init.d scripts for starting/stopping them. Is it possible to tell ...
Troy's user avatar
  • 183
7 votes
2 answers
933 views

Upstart script: Detect shift key down at boot

I want to create a boot up potential which allows a different upstart/runlevel configurations to load based upon specific key downs at boot (or combos). How do I detect a key down event with an ...
7 votes
1 answer
3k views

Do newer Ubuntu releases benefit from multicore processors at boot time?

I've read the Upstart features and it says nothing about concurrency. I also read old advices to set CONCURRENCY value in the /etc/init.d/rc But there is a comment: Specify method used to enable ...
int_ua's user avatar
  • 8,564
7 votes
1 answer
9k views

Expand variables in upstart script

I have written several upstart scripts to start transmission-daemon for several users. The script is this: start on (local-filesystems and net-device-up IFACE=eth0 and runlevel [235]) stop on ...
Juan Simón's user avatar
  • 1,703
5 votes
1 answer
2k views

systemd in ubuntu 14.04

I noticed that the most recent update of ubuntu offers to install systemd components. I hesitate to allow this update for I had very nasty experience of doing this in debian-testing when services ...
user307075's user avatar
5 votes
3 answers
21k views

Cannot stop nginx service

It took me a while to find out, but as of some recent-ish update, I can't stop Nginx on any of my Ubuntu 12.04 or Ubuntu 14.04 servers. I run sudo service nginx stop, and I get nginx start/running, ...
href_'s user avatar
  • 149
5 votes
1 answer
3k views

Systemd is really slow in comparison to upstart

I have been using Ubuntu for a long time now, this is what happened when I use: Systemd: It performs really bad using systemd: it uses 95% of the CPU all the time and the PC gets really hot. Also it ...
ivan gripsgård's user avatar
5 votes
1 answer
2k views

How can I make sure one Upstart job stops before another Upstart job stops?

Sometimes my server is shut down via an ACPI shutdown, and I've managed to get my process to gracefully shut down. However, my process (Job A) relies on another process (Job B) during its graceful ...
Aaron's user avatar
  • 155