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
1 vote
0 answers
93 views

Bring up Java console when started as service

So I have a small situation. I am running a Java application on a Ubuntu 14.04 server. At one point, I opted to use Screen and some custom supervisor scripts to keep the application running. The ...
Atomiklan's user avatar
  • 405
2 votes
0 answers
682 views

Ubuntu 16.04 No desktop and No Dash

Maybe this question sounds like duplicate . But i tried a lot of them . But none of them work . I tried the following commands sudo apt-get install compizconfig-settings-manager ( Error: package not ...
Shopon's user avatar
  • 21
7 votes
0 answers
1k views

How to convert this custom upstart job to systemd? [closed]

I have a custom upstart job that triggers a series of services: /etc/init/auto-gateway.conf: description "Auto-GateWay" author "[email protected]" emits gw-is-up emits gw-is-down start on (...
C4g Video's user avatar
1 vote
0 answers
547 views

How to disable upstart logging?

I am suffering from this bug: unity-service-panel.log taking 18+ GB I am on Ubuntu 14.04. I can't find anything in the internet about how to fix this, other than disabling unity-service-panel, which ...
tdj's user avatar
  • 11
1 vote
1 answer
2k views

Is there other form to restart udev in xenial, Ubuntu 16.04?

I have problems restarting udev, when I write sudo restart udev it tells me restart: Impossible to connect with upstart: Failed to connect to socket /com/ubuntu/upstart: connection ...
Daniel Rodríguez's user avatar
1 vote
1 answer
1k views

Can't run spark-submit with sudo

I don't know if this is a noob question or not, but my various google searches yielded nothing. When I run my application, which uses spark-submit under the hood, without sudo, it works. But when I ...
ardilgulez's user avatar
0 votes
0 answers
23 views

Bash file behaving diferently with Upstart service

I am trying to create a service that deploys an application from a git repository. For that, I execute a node JS script that listens to a port on the server, and each time a developer makes a push to ...
Hammerbot's user avatar
  • 101
2 votes
0 answers
1k views

Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused [duplicate]

I am running ubuntu 16.04, and when I try to install a program using apt-get install (really any program, but take git-all for example), I get the following error: start: Unable to connect to ...
Paul's user avatar
  • 131
2 votes
0 answers
670 views

Bluetooth Controller or GamePad not recognized in Ubuntu 16.04 LTS

In Ubuntu 14.04 LTS, a generic bluetooth controller (iPega) used to be recognized as a controller/gamepad right after pairing. Like a USB controller does. Here is an example. Same thing in Ubuntu 16....
REZ's user avatar
  • 111
1 vote
1 answer
710 views

Disabling X input on startup

I have a cracked touchscreen on my laptop which causes mouse issues so I'm looking to run xinput disable n on startup (after x has started) but I'm not too sure how to do this. I've tried creating an ...
Brandyn's user avatar
  • 162
0 votes
1 answer
3k views

Cannot boot due to I/O Error: 16.04 LTS

I have done a fresh install of Ubuntu 16.04 LTS last month. Since a hard reset (power button held down until system powers down), every time I try to boot into Ubuntu, there's an I/O Error in /dev/...
abilops's user avatar
1 vote
0 answers
161 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 ...
geekydel's user avatar
0 votes
1 answer
958 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 ...
Rocky Inde's user avatar
0 votes
1 answer
550 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 ...
Thomas G. Lau's user avatar
0 votes
1 answer
688 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 ...
gurabli's user avatar
  • 43
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
0 votes
2 answers
868 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 ...
inersha's user avatar
  • 123
3 votes
1 answer
5k 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/...
deanresin's user avatar
  • 564
1 vote
2 answers
704 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 ...
deanresin's user avatar
  • 564
4 votes
0 answers
5k 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: ...
DanB's user avatar
  • 874
0 votes
1 answer
181 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 ...
InteXX's user avatar
  • 101
2 votes
1 answer
6k views

How to automatically mount drives after boot?

In https://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 ...
endolith's user avatar
  • 587
0 votes
1 answer
934 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?
MickStJohn09's user avatar
2 votes
0 answers
2k 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 ...
Martin's user avatar
  • 121
4 votes
2 answers
3k views

Blank screen at boot - errors from Upstart on 16.04

When I boot up, I see the x-windows where I can enter my login, then it gives me a blank desktop background where I see a mouse pointer and nothing else. I can switch to a TTY. I get these errors on ...
Nayeem Syed's user avatar
2 votes
1 answer
772 views

How to write an Upstart script for a background service (db)?

I am on Ubuntu 14.04 server and I am trying to write a script for my database. I have added the file /etc/init/neo.conf. The file is the following: description "neo4j upstart" start on startup stop ...
roy's user avatar
  • 287
1 vote
0 answers
98 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 ...
deanresin's user avatar
  • 564
1 vote
0 answers
35 views

Power on-off-on needed to boot laptop

Toshiba Satellite C660 01C01H 32-bit laptop (specifications at http://bit.ly/1PPMN30) Ubuntu 14.04.4 Trusty Tahr LTS When I switch on the laptop the Toshiba boot screen fails to appear OR the screen ...
Hedley Finger's user avatar
2 votes
1 answer
395 views

Upstart Script not catching mono application's start or stop

I've used the below script both with and without expect fork. It's purpose is to start a .exe file on start-up, and if it fails, to restart it. The mono application must be started by root/sudo to ...
Daniel Brown's user avatar
1 vote
0 answers
384 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 ...
serilain's user avatar
  • 508
2 votes
0 answers
71 views

What was the behavior before modern init replacements?

Based on this excellent answer on changes to init daemons: What is Upstart? ...it seems like modern init replacements including upstart and systemd have added functionality because they are event ...
BluePython's user avatar
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 ...
Fernando Santucci's user avatar
1 vote
0 answers
409 views

Need to restart rinet manually on reboot

I redirect an internet connection through my desktop from WiFi to Ethernet for use by a Raspberry Pi. I then use rinet (manpage) to redirect one port back through the desktop so that I can access a ...
nayrangnu's user avatar
0 votes
1 answer
205 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 ...
zymhan's user avatar
  • 176
8 votes
2 answers
28k 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 ...
Anand Rockzz's user avatar
10 votes
4 answers
23k views

Best way to deactivate Bluetooth on system startup? (with systemd and not upstart)

What is the best way to deactivate Bluetooth for every startup with systemd? There are a lot of examples, but all of them work with upstart and rc.local. With Ubuntu 15.10 rc.local is disabled by ...
Metro's user avatar
  • 103
1 vote
0 answers
303 views

bash command doesn't run in upstart

I'm setting up a django project following H. Percival's TDD. By the end of the chapter I setup an Upstart process to start the server with Gunicorn using Nginx as well. My upstart file /etc/init/...
Diego-MX's user avatar
  • 608
0 votes
1 answer
1k views

How do I start/stop failed upstart job?

I have an upstart script in /etc/init/myexample.conf. This job basically runs a java jar file. Normally, I can start and stop this using sudo start myexample and sudo stop myexample. I changed the ...
mattm's user avatar
  • 190
0 votes
1 answer
1k views

How to use shopt command in upstart configuration file?

I am trying to create an upstart configuration file where inside the script section I am using shopt command to set the nullglob paramater - shopt -s nullglob However, with this I am getting the ...
deboshrestha's user avatar
1 vote
0 answers
626 views

Restart Upstart Service From Jenkins

I have a jenkins continuous integration service running that manages the automated deployment of our software to a development machine. So far, I have successfully set up the server to copy over the ...
Dabloons's user avatar
  • 111
0 votes
1 answer
573 views

Google Cloud Print server gcp-cups-connector wants password for user gcp

I'm trying to set up a Google Cloud Printer server using CUPS Connector on my 64-bit Ubuntu 14.04 computer and the Google-provided gcp-cups-connector executable. I followed the instruction of the wiki ...
Zorro's user avatar
  • 1
3 votes
1 answer
1k views

How to autorun a ruby script in Ubuntu?

How hard can it possibly be to run a ruby script on startup?! Fairly tough apparently: I'm using rvm and running ruby 2.3.0. which ruby returns /home/ubuntu/.rvm/rubies/ruby-2.3.0/bin/ruby The ...
dsp_099's user avatar
  • 346
0 votes
1 answer
464 views

How to set up systemd after failed upgrade

I recently upgraded Kubuntu via update manager from 14.04 to 15.10. Apparently a bad idea. I can now only get a loggin screen. Startx results in: (EE) Fatal server error: (EE)could not create lock ...
joe woodrow's user avatar
1 vote
0 answers
125 views

Upstart Ruby version issue

I am trying to get Upstart to fire up Sidekiq (https://github.com/mperham/sidekiq/wiki/Deploying-to-Ubuntu). I can manually start it but the same command fails in the Upstart script. I have piped ...
Dan Tappin's user avatar
4 votes
1 answer
3k views

upstart job for sidekiq not working

Below is the upstart script for sidekiq. Running upstart sudo service sidekiq start Gets the following error sidekiq: unrecognized service Following is the sidekiq.conf content # Just a custom ...
Ajeet Khan's user avatar
2 votes
1 answer
13k views

Ubuntu 15.04 systemctl: command not found

I am currently trying to install Syncthing and have it start automatically. I am following the guide Starting Syncthing Automatically - Using systemd. I have a file called "syncthing@myuser....
Chris's user avatar
  • 73
0 votes
1 answer
231 views

How to use upstart tasks to create a new file with today's date?

I am trying to use Upstart to create a new file with today's date. I have created a file called "Open.conf" at /home/myusername/.config/upstart I have the following lines in that file: description "...
Inspired_Blue's user avatar
1 vote
0 answers
913 views

Capturing a kernel dump from a CPU soft lockup at boot?

I am SAN Booting an Ubuntu server and have configured the 14.04.2 client to the best of my ability according to: https://wiki.ubuntu.com/Kernel/CrashdumpRecipe It seems like the article works fine ...
lollan's user avatar
  • 11
1 vote
0 answers
239 views

Creating an upstart service for dumping and uploading a mysql database on shutdown

I am running Ubuntu Server 14.04 LTS x64. I have two KVM guests. One is a file server and another runs mysql server. I have a script that I run on the file server. The script connects via ssh to the ...
rodrigomartinho's user avatar
1 vote
1 answer
2k views

Ubuntu 15.04 now 15.10 boots fine with Upstart fails to boot with SystemD

I'm not sure how to solve this problem as both 15.04 and 15.10 with systemd get me only to an emergency shell whereas upstart works just fine. Having struggled with this for a whole version, help ...
Filicado's user avatar

1 2 3
4
5
16