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.
771
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, ...
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.
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/...
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 ...
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-...
54
votes
5
answers
130k
views
Correct way to install a custom upstart service
I am using upstart for services on my servers. Writing a conf file and placing it in /etc/init is easy enough, but that doesn't seem to completely install. For one, the service --status-all doesn't ...
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 ...
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?
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 ...
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 ...
34
votes
2
answers
62k
views
"Rejected send message, 1 matched rules; type="method_call", sender=":1.5"" while starting MySQL
I have a mysql that has been working fine but now will not start. All I've been able to accomplish is using
sudo start mysql
which generates the following error:
start: Rejected send message, 1 ...
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 ...
33
votes
1
answer
28k
views
What is the meaning of this Upstart init error?
$ start playframework
start: Rejected send message, 1 matched rules; type="method_call",
sender=":1.6" (uid=1000 pid=1080 comm="start portal ")
interface="com.ubuntu.Upstart0_6.Job" member="Start" ...
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: ...
29
votes
5
answers
42k
views
What is Upstart?
Which operating systems besides Ubuntu use it?
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 ...
28
votes
6
answers
62k
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 /root/...
27
votes
5
answers
26k
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 ...
24
votes
1
answer
43k
views
Why the services do not start at installation?
I've seen this sometime now, but not finding anything in the ubuntu man about this peculiar policy-rc.d binary that prevents services from being started/restarted/stopped when called by dpkg/apt, so I ...
24
votes
2
answers
9k
views
Is there any GUI tool for Upstart
Is there currently any GUI based application to show currently running services, with buttons to start and stop services?
It doesn't necessarily need to be able to set boot up behaviour.
23
votes
2
answers
70k
views
How to create a service on Ubuntu Upstart
I have a Java executable program that I can run by typing java -jar abc.jar in terminal.
How can I run it as a service? I want to run it as a service like by typing service abc start.
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 ...
21
votes
3
answers
26k
views
How to run docker-compose at bootup?
This is on an Ubuntu 14.04 LTS VM running Docker and I suspect respawn is the cause of my problem but not sure of the ideal solution.
Current upstart script (cat /etc/init/dockersuitecrm.conf)
...
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
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?
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 ...
18
votes
1
answer
20k
views
Will Ubuntu 18.04 LTS still support Upstart or do we have to change to systemd?
Title pretty much says it all, I'm aware that since Ubuntu 15.04 systemd is the default service management tool, but can we still use Upstart with 18.04 if we'd like?
If we can still use Upstart with ...
18
votes
6
answers
13k
views
How do I stop all processes in a chroot?
I have a number of LVM partitions, each containing an Ubuntu installation. Occasionally, I want to do an apt-get dist-upgrade, to update an installation to the most recent packages. I do this with ...
18
votes
4
answers
22k
views
Automatically mount sshfs on startup?
Is it possible to automatically mount a sshfs filesystem whenever the connection goes up?
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 ...
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 ...
16
votes
3
answers
18k
views
Debugging: Console Output and Upstart Scripts
How do you send the output of an upstart script to a terminal so to find tracebacks in python code? It's taking me for ever to do things without trace-backs that used to take just a second. I'm ...
16
votes
4
answers
13k
views
How to set a Upstart job to start manually?
I want to disable a bunch of upstart jobs here. I know how to make a upstart job. And also I know how to stop manually a job. However, I can't find a sample where I turn a automatically job into a ...
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 /...
16
votes
3
answers
21k
views
How do I disable irqbalance?
The title says it all really. I don't want to just kill something that seems so close to the bare metal, and sudo service irqbalance stop says stop: Unknown instance: -- what am I missing? Should I be ...
16
votes
6
answers
10k
views
upstart-supervised init script for Apache?
I want to run apache on Ubuntu 10.04, and use the nice supervision stuff in upstart (I'm not just talking about the apache init script, but proper service supervision a la daemontools - which is to ...
16
votes
1
answer
9k
views
What are all the autostart locations in Ubuntu?
I'm a Ubuntu newbie in need of some advice from anyone very familiar with the different Ubuntu startup methodologies.
I'm interested in enumerating all the applications that are triggered at startup ...
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
...
15
votes
5
answers
43k
views
Failed to start <myapp>.service: Unit <myapp>.service not found
I created a super basic init.d script for my python bot:
#!/bin/bash
# chkconfig: 2345 20 80
# description: Description comes here....
# Source function library.
. /etc/init.d/functions
start() {
...
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 ...
13
votes
7
answers
58k
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 ...
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-...
13
votes
1
answer
17k
views
Want to make an upstart script; need help and advice
Atm, I need to randomly start and stop (for lack of a better word in my mind) a job. I start it by typing java -jar foo.jar and to stop it find out its pid and kill it. Killing it doesn't cause any ...
13
votes
2
answers
6k
views
What does init on Ubuntu do?
I already know that init is the magical program that is needed for booting your computer and managing runlevels, but what is it's real purpose?
Why do we even need init in the first place? Why can't ...
12
votes
2
answers
80k
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 ...
12
votes
3
answers
14k
views
HOME variable is not set
I have two servers, they're identical (I believe), production and staging servers.
And I have upstart script in /etc/init/ folder.
description "Discoure process"
setuid deploy
setgid deploy
...
12
votes
2
answers
7k
views
How to disable mediascanner-service?
I've installed ubuntu-sdk and it depends among others on mediascanner2.0. I generally despise all such scanners/trackers and I'd like to disable it. But I can't find a way.
The config is in /usr/...
12
votes
2
answers
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 ...
12
votes
1
answer
13k
views
Differences between Upstart and Systemd
I have read several news sites about Systemd and how better it is but I have not yet seen one that actually compares Upstart with Systemd. Actually, I haven't even seen one that talks about the ...