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

13
votes
2answers
20k 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 ...
1
vote
0answers
27 views

Upstart services work in SSH session, but not in local terminal session

If I open a local terminal, and attempt to start an upstart service I get this error: service rsync status status: Unknown job: rsync But if I SSH in as the same user, it works fine: service rsync ...
12
votes
3answers
3k 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 ...
0
votes
1answer
27 views

What is the recommended way to disable a service in 14.04?

The specific programs that I needed to disable were nginx and postgresql. I have tried the flagship post for this question, which suggests I create a manual override file for upstart, and it does not ...
0
votes
1answer
24 views

systemd on LTS 14.04 Ubuntu?

Folks, I am wondering if systemd work on 14.04 LTS? I don't need fully replace from Upstart to systemd, because of future planning, we might want to config service running via systemd instead of ...
3
votes
2answers
11k 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
25 views

Upstart job forking out of control

I am trying to run a particular daemon through upstart. Outside of upstart it runs as expected, and produces a pid file which matches the process id. When launched in upstart however (without expect ...
9
votes
1answer
733 views

Upstart not reopening log files on logrotation

We use upstart to manage our services on our Ubuntu servers. They produce logs which are logged out to /var/log/upstart/SERVICE_NAME.log Then daily, the log files are rotated using the logrotation ...
0
votes
1answer
284 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 ...
1
vote
0answers
302 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. I only have two outstanding issues, both of which might just be due to buggy beta packages but I thought I'd ...
16
votes
5answers
7k 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 ...
0
votes
0answers
72 views

16.04 , rabbitmq, systemD and status of the service or daemon

Having just installed 16.04 on a new dev laptop, i'm seeing conflicting status info on the way that systemD handles rabbitmq-service daemon... I think i installed rabbitmq prior to erlang and then ...
0
votes
2answers
28 views

Upstart - Service immediately stops after starting

Here's my /etc/init/jobname.conf file: start on startup stop on shutdown respawn script php /home/inersha/file.php end script When I start the service, it immediately stops: $ sudo service ...
0
votes
0answers
32 views

error processing package upstart (--configure)

I fresh installed Ubuntu 16.04 and this error appeared after all upgrades! $ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done ...
0
votes
0answers
22 views

Upstart respawn not working

I want to activate automatic service respawn on a few ec2 instances running Ubuntu 14.04. In particular, each of those instances host Apache web server + Lucee (a tomcat-like application server). I ...
4
votes
5answers
18k 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 ...
0
votes
0answers
9 views

scp on AWS in upstart job

I am about to setup an upstart job which will copy around 5GB package from another server over same domain (on AWS) and then start another service. Is it advisable to download such a big package using ...
15
votes
2answers
16k 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: ...
0
votes
0answers
30 views

Upstart job status always stop/waiting

Im trying to run a looping php script via upstart confing but after start it always returns sot/waiting in response for its status and also there is no such process running on the system. Here is my ...
0
votes
2answers
63 views

Super confused between upstart and systemd

Given I'm running 15.10 my system should be using systemd confirmed by... $ ps -p1 | grep systemd && echo systemd || echo upstart 1 ? 00:00:02 systemd systemd But I have an ...
1
vote
2answers
2k views

Which init daemon starts cups?

I have a fresh installation of Ubuntu 14.04, and have not touched anything. Cups is running, as reported by both ps and netstat. There are /etc/init/cups.conf and /etc/init.d/cups, both of them seem ...
0
votes
1answer
42 views

How to make sure OpenVPN service is started first (before other services) on 14.04?

I'm running OpenVPN as an upstart script on Ubuntu Server 14.04 LTS. I have an openvpn.conf file in the /etc/init/ folder. It works perfectly, OpenVPN starts on system start and connects to VPN ...
2
votes
1answer
255 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 ...
2
votes
1answer
41 views

How do I get my script to run BEFORE any shutdown sequence like unmounting my external drive

I have a back up script in ~/scripts/backup.sh and my upstart conf in ~/.config/upstart/shutdown.conf. description "my shutdown script" start on desktop-end task console log script exec ~/scripts/...
0
votes
0answers
65 views

systemd-logind: Failed to enable subscription:

I am not able to login in GUI using systemd (see just black screen). The following message appears in the dmesg: [ 104.609973] systemd-logind[1775]: Failed to enable subscription: Launch helper ...
0
votes
0answers
13 views

Upstart 1.12.1 only running first exec

file /etc/init/karl-startup-sensei-init.conf: description "something" author "karl" start on runlevel [2345] script exec echo `date` /etc/init/karl-startup-sensei-init.conf - starting >> /...
0
votes
1answer
27 views

How to run the btsync service as the local user?

I just installed the new btsync package, per this blog post. All seems well, except I can't add any folders—the service is running under the newly-created btsync account. I need to find out how to run ...
0
votes
0answers
72 views

Upgrade from 14.04 LTS to 16.04 LTS

I upgraded from 14.04 LTS to 16.04 LTS. All package installations were fine, I rebooted the system and got only a black screen after the boot menu. When pressing Ctrl+Alt+Del after some minutes of ...
1
vote
0answers
93 views

systemctl cannot disable services, displays upstart errors

On my Ubuntu 16.04 (Xenial) server, I cannot disable services from autostarting at boot. I get these error messages: $ sudo systemctl disable puppet.service ... initctl: Unable to connect to Upstart: ...
2
votes
3answers
19k views

tftpd-hpa server (timeout from client side) please help

I'm a bit new to version 14.04 of Ubuntu: No LSB modules are available. I am trying to set up a tftp server, mostly for backup up cisco ios configs. I have followed every tutorial I can, and I'm ...
3
votes
3answers
2k views

How To Run An Application On Startup Automatically?

I am using "UbuntuServer13.10" and I have Dynamic IP. So for learning purpose, I want to add a host on my dynamic IP to open my server easily from anywhere. For this purpose, I used www.noip.com ...
0
votes
1answer
110 views

How to automatically mount drives after boot?

In http://askubuntu.com/a/119818/5032 qbi says: add noauto to your fstab: ... So the filesystem will not automatically mounted at startup. Furthermore you write a script which ...
0
votes
0answers
11 views

Upstart hangs, process is start/killed

I need upstart to launch a "v1" meteorjs application on a small DigitalOcean droplet (Ubuntu 14.04). When I service v1 startthe shell hangs, until I eventually CTRL+C. I probably made a mistake in ...
1
vote
1answer
537 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
0answers
17 views

The upstart at least a shell script

What 's wrong with my upstart configuration files? I want VAL = 1 as a result of result.txt. /etc/init/test.conf description "test" start on startup script if [ $(cat /test.txt) == "...
40
votes
2answers
33k 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?
0
votes
1answer
39 views

how to bring linux bridge up at booting time?

I am trying to bring up a linux bridge at the time my ubuntu is booting. The bridge is mapped to eth0 interface. Is there any way?
1
vote
0answers
37 views

Mongod service suddenly stopped at night. Understanding why

I've created a node.js server with a mongodb database on Ubuntu. I installed mongodb with the official documentation, using upstart. This morning, my node server wake me up with crash logs saying the ...
0
votes
0answers
22 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 ...
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
73 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
249 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 ...
53
votes
2answers
62k 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 ...
2
votes
2answers
3k 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 3.19.0-25-...
0
votes
0answers
47 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 $$ &...
1
vote
1answer
515 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
21 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
32 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
179 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... ...