Questions specific to the "upstart" init system. Do not use for general init issues.
Questions tagged [upstart]
147 questions
196
votes
6 answers
What are the pros/cons of Upstart and systemd?
It appears systemd is the hot new init system on the block, same as Upstart was a few years ago. What are the pros/cons for each? Also, how does each compare to other init systems?
tshepang
- 64,472
- 86
- 223
- 290
108
votes
2 answers
How can I restart the SSH daemon on Ubuntu?
When I type in service sshd restart I get a sshd: unrecognized service error.
I do have, in /etc/ssh/ a file sshd_config that I use to set config. I can also putty into the Ubuntu box (it is remote).
When I type in /etc/init.d/sshd restart I get No…
bharal
- 1,423
- 3
- 10
- 10
102
votes
5 answers
How to find out if a system uses SysV, Upstart or Systemd initsystem
Is there a simple way to find out which initsystem is being used e.g by a recent Debian wheezy or Fedora system? I'm aware that Fedora 21 uses systemd initsystem but that is because I read that and because all relevant scripts/symlinks are stored…
Valentin Bajrami
- 9,244
- 3
- 25
- 38
32
votes
2 answers
How to start a service automatically, when Ubuntu starts?
I am using Ubuntu 12.04 and want to have a service starting, when the system is booted normally.
As 'service' I understand some code, for example
cd my_directory; my_command -host 0.0.0.0 -port 1234 -arg x
that just should be running as if it…
Alex
- 5,614
- 19
- 65
- 86
23
votes
7 answers
Ubuntu12.04: How to disable a daemon process at startup
I normally use service start/stop or initctl start/stop to start or stop a daemon process but now what I am looking for is to disable a daemon process from starting at startup example mysqld.
Currently what am doing is renaming /etc/init/mysql.conf…
RanRag
- 5,675
- 6
- 20
- 15
20
votes
2 answers
Upstart on Debian?
I created an upstart script in Ubuntu, thinking it would be the same for Debian. But Debian doesn't have a /etc/init folder that Ubuntu has. I went to the upstart download page and seeing that they have packages, did a apt-get install upstart, but…
theTuxRacer
- 1,053
- 5
- 11
- 15
15
votes
5 answers
Why doesn't docker container start at boot w/ upstart script on Ubuntu 12.04?
Using instructions for Docker auto-start on Linode VPS running Ubuntu 12.04 and Docker 0.8.1, the specified container does not start on reboot.
Once booted, I am able to
~$ sudo start [service-name]
and everything goes as planned, but I would also…
jody
- 211
- 1
- 2
- 10
14
votes
3 answers
service to start on boot doesn't work with update-rc.d command
I have installed redis server on my Ubuntu based server, so I can start/stop/restart redis server. The redis_server.sh is already in the /etc/init.d.
Now I want to make redis start on boot. I learned from a website that by working with the…
user824624
- 243
- 1
- 2
- 5
13
votes
1 answer
is upstart and supervisord used for the same thing?
I have a some jvm based processes that I need to make sure start whenever my server is rebooted, and also if it stops because of an unexpected error etc.
I'm running Ubuntu 12.04 in case in matters.
I have seen sample upstart scripts and I am sort…
Blankman
- 263
- 1
- 3
- 7
9
votes
0 answers
Solaris SMF vs Linux Upstart
I'm in the process of learning Upstart after first having learned SMF.
Naturally I'm assuming that they fulfill the same purpose but I'm aware that this is where I'm wrong.
Ideally I was hoping that someone had written a comparison so that I…
unixhacker2010
- 547
- 6
- 9
8
votes
1 answer
Is there any systemd equivalent to "initctl emit"?
In upstart, it was possible to send custom events with initctl emit custom-event. It was also possible to use these custom events on the start on and stop on stanzas. Does systemd provides something similar to this? There is no mention of it on the…
Ledazinha
- 205
- 2
- 6
8
votes
1 answer
Using upstart with stop unknown instance
I'm just getting into upstart so i wrote a very basic script just to print to log file called: vm-service.conf that I put in /etc/init:
description "Virtual Images"
author "Me"
start on runlevel [2345]
stop on runlevel [016]
respawn …
adviner
- 193
- 1
- 1
- 5
7
votes
1 answer
linux mint "initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
Getting error message at logon "session only lasted less than 10 seconds....", which apparently can be caused by multiple issues. My error is happening during the graphical logon.
I can login to the console by pressing ctrl alt F1. contents of…
michael kelly
- 71
- 1
- 2
7
votes
1 answer
The equivalent of start-stop-daemon for RedHat 6
I have an upstart script to create a service in RedHat 6:
env PLAY_BINARY=/usr/bin/play
env HOME=/opt/warda
env USER=root
env GROUP=root
[...]
script
exec start-stop-daemon --start --exec $PLAY_BINARY --chuid $USER:$GROUP --chdir $HOME --start…
RikyTres
- 203
- 3
- 8
6
votes
3 answers
Making environment variables available for downstream processes started within an init.d script
This questions stems from @FrustratedWithFormsDesigner comment.
How do I make export environment variables set within an init.d script available to downstream processes started within that same init.d script?
In more detail, I am on an Amazon EC2…
Marc A
- 203
- 1
- 2
- 6