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
1 answer
593 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 ...
Merlijn Sebrechts's user avatar
3 votes
1 answer
7k views

Ubuntu 15.04 with Kubuntu Plasma Desktop not booting

I upgraded to Ubuntu 15.04 today. The Laptop booted fine. However, after that I also installed Kubuntu Plasma Desktop from the Ubuntu Software Center. On booting default “Ubuntu” I get a black blank ...
IndianArt's user avatar
  • 369
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) ...
DeepSpace101's user avatar
2 votes
0 answers
756 views

Massive log file and 100% CPU usage for 'upstart'

I have a fresh install of Ubuntu 14.10, and I installed some programs like MATLAB, Chromium, Evolution and other fairly harmless stuff. However, I have run into some trouble recently. The file /home/...
Sanchises's user avatar
  • 121
6 votes
3 answers
20k views

How to register an upstart service?

I wrote an upstart service following the Ubuntu wiki article and created a .conf file in /etc/init/. There're no instructions on how to proceed to make the script available in initctl list and for ...
Kalle Richter's user avatar
2 votes
0 answers
11k views

/bin/sh: 0: can't access tty; job control turned off [closed]

I'm building a custom image to run on a simulator. the kernel boots fine and everything but generates this warning: /bin/sh: 0: can't access tty; job control turned off and the terminal does not ...
mewais's user avatar
  • 407
1 vote
0 answers
2k views

How to redirect the output to a log file from upstart script?

I am using upstart to start/stop my c++ app server as shown below - start on runlevel [2345] stop on runlevel [016] chdir /opt/tetra/app_server respawn post-stop script sleep 30 end script ...
david's user avatar
  • 73
2 votes
1 answer
6k views

Where should I put my Upstart scripts?

I'm trying to figure out Upstart and I'm not sure if I should put them in /etc/init or ~/.config/upstart And what is the difference between the locations?
Ryan Stull's user avatar
0 votes
1 answer
50 views

Which upstart jobs are optional/unnecessary that I can eliminate by renaming from xx.conf to xx.skip [closed]

I know HOW to have an upstart job not start (mv cron.conf cron.skip). WHICH upstart jobs are OPTIONAL or UNNECESSARY and still have my system function. I DO NOT NEED cron, encription, bluetooth, ...
user2828980's user avatar
1 vote
0 answers
613 views

Problems with starting x11vnc on boot

I'm trying to start up x11vnc on boot, without the need to log in, but I ran into quite a few problems and none of the guides helped. First of all, rc.local does not work, as it apparently starts ...
Rain Gloom's user avatar
1 vote
1 answer
118 views

init.d script + upstart help/advice

I have written up a Shell init.d script named "My_first_initd_script". The script works great when I run it from the /etc/init.d/ -working in the foreground. I would like to make"...
3kstc's user avatar
  • 329
3 votes
1 answer
3k views

Upstart or Systemd

So I'm confused. I'm getting a lot of mixed information via Google. As of today, what is Ubuntu using going forward? Is Ubuntu choosing to use and support Upstart, or are they using Systemd? I would ...
Atomiklan's user avatar
  • 405
1 vote
0 answers
96 views

What is the idiomatic way to start/stop a group of Upstarted services with a single command?

I have a set of a dozen or so services that usually are restarted in a group, but there are also cases where they need to be restarted / stopped individually. It is cumbersome and error prone to have ...
stantonk's user avatar
  • 111
5 votes
1 answer
2k views

how to debug upstart if it hangs while root is read-only?

I am trying to debug an unsecessful/hung-up system start (upstart) on 14.04.2 LTS. root is an ext4 filesystem in a luks container. filesystems are in clean state. The boot process stops after upstart-...
anx's user avatar
  • 2,348
4 votes
1 answer
2k views

How should I configure Ubuntu/Upstart for unusual network configuration?

I recently installed Ubuntu Utopic 14.04 LTS on a new server box I built specifically to host some virtual machines. The network configuration for this box, which contains two NICs, exposes the two ...
David W's user avatar
  • 193
1 vote
2 answers
6k views

Can not remove nvidia-prime package

When trying to switch 14.10 to systemd I've run into a situation: I can not remove package 'nvidia-prime' and it prevents me to install either upstart or systemd, so now my machine will not reboot. ...
Barafu Albino's user avatar
7 votes
1 answer
4k views

How does the Ubuntu boot process work?

I have read many articles about the Linux boot process. As I understand the Linux boot process is something like this : BIOS (UEFI) → MBR → grub → Kernel → init What I really don't understand what ...
Mero's user avatar
  • 254
1 vote
1 answer
1k views

Service initialization scripts: upstart?

Where can I read some brief information about upstart in ubuntu? I found "Upstart Intro, Cookbook and Best Practises", but it's too big. How can I add my own service? What's the difference between /...
Dmitry's user avatar
  • 257
1 vote
1 answer
756 views

Shutdown Ubuntu using upstart

I have a process which is started by Upstart. It will try to respwan the process n number of times on failure and after that if it fails, I want to restart my Ubuntu. I tried telinit, halt etc in ...
Spike's user avatar
  • 11
2 votes
1 answer
2k views

Ubuntu 14.04 Server, launch jar in screen on boot/restart

Ive been reading everywhere on how to do this, and I understand how to do it, but for some reason I cannot get it to work correctly. I simply want to run a jar file on restart or boot, the jar file ...
Peter Keogan's user avatar
1 vote
1 answer
1k views

How configure the upstart in ubuntu in my ec2 [node.js]

I am using an amazon ec2 instance with ubuntu to host my node.js application, i already made all the configurations, and is working good when i type: nodemon ./bin/www ./bin/www is the file that ...
FXux's user avatar
  • 141
2 votes
1 answer
558 views

Upstart vs Systemd Performance

Has anyone measured difference in performance between these 2 systems on Ubuntu? Systemd is coming, and it has it's merits, but I fear Upstart will be tough to beat on Ubuntu, since it had years of ...
Ivan Čurdinjaković's user avatar
1 vote
1 answer
951 views

System hangs after /sbin/init starts; no login prompt

I have an Arndale board running Ubuntu 12.04 with the root file system mounted on a MicroSD card. Recent, that card was damaged and I tried to recreate the file system on a new 16GB card. All went ...
Einheri's user avatar
  • 111
7 votes
1 answer
2k views

Change logging directory/file for an Upstart service

I have an upstart service that it fills up the space. I need to move the logs from /var/log/upstart to a different directory /pub/data/logs/order_server. I tried to do it using console log --logdir /...
mezi's user avatar
  • 171
0 votes
1 answer
170 views

Upstart and isstty(STDOUT_FILENO)

Many Linux programs use istty to determine whether STDOUT is a terminal or not. For example, ls will (by default) suppress coloured output if it's redirected (istty == 0). When running upstart jobs, ...
Drew Noakes's user avatar
  • 5,708
10 votes
1 answer
19k views

list all services

There are two ways you could do this service --status-all. The other way is to do initctl list. I would like to know the difference. some services like mysql do not show up in initctl list, and some ...
Akilesh's user avatar
  • 233
0 votes
1 answer
3k views

Autostart a Python script in an LX terminal

I have a python script which extracts continuous data from an incoming serial string and inserts the fields into an Sql database. The python script can be run manually from an LX terminal and works ...
HenryOx's user avatar
2 votes
0 answers
4k views

Process "/bin/sh -e /proc/self/fd/9" - what starts it and why?

I have a process /bin/sh -e /proc/self/fd/9 that runs on my system. sh -e /path/to/file in dash (which sh is symlinked to on my Kubuntu 14.10) just tests for existence of a file. In /proc/self/fs I ...
pbhj's user avatar
  • 3,231
2 votes
0 answers
59 views

Deluged Upstart not starting [duplicate]

Setting up a new ubuntu server installation (14.04.1), I have been completely unable to get deluge to start as a daemon at system startup. Originally tried following this set of instructions: http://...
ken's user avatar
  • 21
2 votes
1 answer
3k views

How do I setup services to start when Gitlab is ready?

I have a few Upstart services that I would like to have started once Gitlab is started and ready to serve repositories. There is a gitlab-runsvdir Upstart service (came with the gitlab package) that ...
Andrew's user avatar
  • 121
0 votes
1 answer
675 views

Can't execute nmcli in an upstart job

The file below is the default network-manager.conf upstart job. $ cat /etc/init/network-manager.conf # network-manager - network connection manager # # The Network Manager daemon manages the system's ...
hydrajump's user avatar
  • 181
0 votes
1 answer
254 views

Does upstart pass an entire script body to shell for execution or process line-by-line?

My upstart job is failing in pre-start, when it moves any previous logfile to a backup: pre-start script mv -f $LOGDIR/$LOGFILE $LOGDIR/$LOGFILE.bak touch $LOGDIR/$LOGFILE end script I expect ...
kdgregory's user avatar
  • 103
0 votes
1 answer
514 views

upstart not running jar file once system has booted

I have been working on several bits of code and done a fair bit of testing and looking around for answers before posting this, so I am hoping someone can help solve this with me. The jar I am able to ...
Simon Pascoe's user avatar
1 vote
1 answer
793 views

My command runs in bash, but not from /etc/init, what have I done wrong?

I'm having some trouble with this init script. When I run the command I'm passing to start-stop-daemon from the command line it works perfectly, even if I run it sudoed as the userid in the script, ...
Racheet's user avatar
  • 113
0 votes
1 answer
206 views

Log upstart event env var EXIT_SIGNAL/EXIT_STATUS

Upstart has job environment and event environment, I am faimilar with the jobs, and I can write script stanzas to log/exec. But when the process fails, there is a stopped event, which has some useful ...
Ani's user avatar
  • 39
1 vote
1 answer
1k views

sbin/init crash after log in

Hi I have been getting a problem where, every time I log into Ubuntu, a red exclamation mark appears in the top-right of the screen. On clicking it, a window appears to say "Sorry, Ubuntu 12.04 has ...
immarried's user avatar
  • 131
1 vote
0 answers
736 views

Upstart job not starting - virtual-filesystem not emitted?

I have installed logstash from the official elasticsearch repository on Ubuntu 14.10. Installation process added the upstart job /etc/init/logstash.conf and init script /etc/init.d/logstash # logstash ...
Joyce Babu's user avatar
2 votes
0 answers
142 views

PXE boot 14.04 : filesystem.dir not working: do I have to use filesystem.squashfs?

I've been using PXE-Boot with an extracted filesystem rather than squashfs so far: [NFS-server]:/[cdpath]/casper/filesystem.dir/ instead of [NFS-server]:/[cdpath]/casper/filesystem.squashfs This ...
rrg's user avatar
  • 41
0 votes
1 answer
646 views

Ubuntu 12.04 in login loop as lightdm-session says upstart not found

I tried to install a package systemd (this replaces upstart in Utopic 14.10 and up). See my yesterday question How to Re Generate All Gnome Schemas for Ubuntu 12.04. The result was that it didn't work....
Antonio's user avatar
  • 1,596
2 votes
2 answers
9k views

Ubuntu 14.04 boot hangs at logo after updating

Yesterday, I did a update/dist-upgrade. Today, I powered on the machine and it was hanging at the loading screen with logo and cycling dots - I've waited at this screen for about an hour several times ...
Chaosed0's user avatar
  • 171
3 votes
0 answers
147 views

What service starts a user session before they login? [closed]

I've noticed that I have problems with insync and dropbox icons showing up in my system tray and in investigating the problem it seems to be because they are being started before I even login. In ...
Tormak's user avatar
  • 31
3 votes
1 answer
438 views

Bash script works from command line, but not if started by upstart

I have a script that listens on port 12 and invokes xbmc when receiving a wol packet. It works perfectly fine when I launch the script directly from the command line, but nothing happens when I let ...
Yotam's user avatar
  • 1,339
1 vote
1 answer
2k views

Running service spacenavd start not same as /etc/init.d/spacenavd start

I have an application which makes use of a 3dconnexion space mouse. It works fine when using the spacenavd daemon however I'm having issues getting the daemon to run at boot or as a service. $ sudo ...
user3293204's user avatar
3 votes
1 answer
6k views

How do I find out what version of upstart I have?

I'm trying to figure out if I should use User Jobs or Session Jobs, since Session Jobs are the proper way to do things from upstart 1.7 onward. I'm running Ubuntu 14.04. How do I find out what ...
Matt Ellen's user avatar
1 vote
0 answers
107 views

Prevent service from starting manually when dependent services are down

Suppose I have two services db and app (which needs db to be up and running before it starts). They are starting correctly on startup and when I do sudo service db stop it stops both db and app. But ...
grafthez's user avatar
  • 641
1 vote
2 answers
828 views

How to enable user jobs in Upstart

I'm trying to allow non-privileged users to run upstart jobs from their $HOME/.init directory. Upstart cookbook mentions that you must enable this, but doesn't mention how to do it. The frustration ...
gregoltsov's user avatar
1 vote
1 answer
262 views

How to implement in upstart that a service is preventive restarted every x hours?

I have a component --- started with upstart --- with a bug. The bug causes the application to freeze and unfortunately, it does not crush. As a temporary walk-around, I want to force the service to ...
Skarab's user avatar
  • 243
1 vote
1 answer
746 views

Can I remove upstart-* from startup

When I startup my computer I have 80+ processes running - just under my name. Of these, I have 4 that match the regex upstart-*: upstart-dbus-bridge upstart-dbus-bridge upstart-file-bridge upstart-...
Tim's user avatar
  • 32.8k
2 votes
1 answer
1k views

How do I run weechat and screen as an upstart service without error?

I want to run weechat constantly in the background so that I can ssh in and reattach to it via screen. I'm trying to accomplish this via the following file in /etc/init/chatscreen.conf: description ...
Slix's user avatar
  • 121
2 votes
1 answer
920 views

upstart fail to run service and not able to debug

I am using os-svc-daemon to create my upstart service for openstack project. my upstart job config is as below File : /etc/init/myservice.conf start on runlevel [2345] stop on runlevel [016] env ...
Nilesh's user avatar
  • 143

1
5 6
7
8 9
16