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.
126
questions
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, ...
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 ...
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 ...
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/...
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-...
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?
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 ...
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 ...
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 ...
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: ...
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 ...
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 '/...
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.
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 ...
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 ...
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 /...
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 ...
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 ...
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/...
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/...
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://...
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-...
29
votes
5
answers
42k
views
What is Upstart?
Which operating systems besides Ubuntu use it?
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?
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 ...
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 ...
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 ...
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 ...
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-...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
...
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 ...
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?
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...