Tagged Questions

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

1
vote
1answer
15 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 ...
0
votes
0answers
11 views

etherpad lite on ubuntu 14.04 server

I just installed etherpad-lite on my ubuntu 14.04 server and everything worked fine, I had access to the etherpad on web after startup and could create new pads, add stuff and so on. Just as expected. ...
0
votes
1answer
16 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 ...
0
votes
1answer
21 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 ...
2
votes
1answer
34 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 ...
0
votes
0answers
23 views

Enabling systemd in Ubuntu 12.04 lxc container

Following is my setup I am running Ubuntu 12.04.1 Precise. I have and lxc container on it running upstart. I want to replace upstart with systemd. I modified the container's lxc with "virsh -c ...
2
votes
1answer
31 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 ...
0
votes
1answer
22 views

start: Unknown job: tester while using upstart feature of ubuntu [closed]

I have a jar file which I am running like this in my Ubuntu 10.10 and then it starts my exhibitor server in the background - nohup java -jar ...
0
votes
1answer
20 views

Is it possible to use services that provide their own pid, like dnsmasq, to use with upstart?

I need badly a better way to refresh dnsmasq configuration than in How to let built-in DHCP assign a static IP to LXC container based on name, not MAC address . I cannot afford restarting all ...
1
vote
1answer
45 views

Kill SSHFS at shutdown? (systemd / upstart)

Apparently having an SSHFS mountpoint active while trying to restart or shutdown Ubuntu can cause the system to hang. I would really like to avoid having to possibly power cycle, due to using an md ...
1
vote
0answers
17 views

Upstart - unable to read /etc/shadow unless sudo

In the following script in Upstart, I'm unable to read /etc/shadow in pre-script phase, unless I use $(echo mypass | sudo -S cat /etc/shadow | grep myusername) The script works fine if I provide my ...
0
votes
1answer
41 views

start on emit is not working on upstart

I am working to restart service if stopped. I was looking for upstart, to restart service. I found some answers. I took apache2 service for testing. I changed code as below. # File : ...
0
votes
0answers
43 views

Ubuntu 14 Upstart script respawning process after calling service stop

I have an upstart script that works correctly on Ubuntu 10/12. But on Ubuntu 14 when I call sudo service sync_gateway stop The service is automatically re-spawned as though it exited ...
1
vote
0answers
19 views

How to autorun a script as root just after the user's encrypted home directory has become mounted on headless server?

There is a problem with ecryptfs that it heavily limits the maximal filename length. To walkaround it I link most home subfolders to the external encrypted partition. The partition gets mounted just ...
0
votes
1answer
40 views

Upstart - handling stop when the process is killed

I have upstart configuration for my java process: /etc/init/myjar.conf description "my jar" author "me" start on runlevel [2345] stop on shutdown expect fork script chdir /opt/myjar/ java ...
0
votes
1answer
539 views

Upgrade from 14.04 to 14.10 Failed really bad

I got a popup saying i had updates, and a new release. I clicked on to do the upgrade. Things went ok for a bit, then i started getting popups talking about problems .. like 10 or so, saying i should ...
0
votes
1answer
130 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 ...
1
vote
2answers
52 views

Why does my script work when started from console but does not work when started via upstart?

I am running Ubuntu 12.04. Here is what I am trying to do: I copied and adapted a shell script from here: http://yatse.leetzone.org/redmine/boards/2/topics/2088. It listens to UDP port 9 for ...
0
votes
0answers
19 views

How to clean upstart service status files?

I was experimenting with my upstart service while was getting service hang etc. Now it seems to me that service never goes well even with previously good configs. Can it be so? I suspect this is ...
0
votes
0answers
26 views

Making one Upstart script see environment variables of another

I have a server that starts with Upstart: /etc/init/server.conf description "Server" start on runlevel [2345] stop on runlevel [!2345] respawn exec /opt/myserver/runmyserver.sh To ...
0
votes
0answers
40 views

How to create correct upstart script for vnc4server which can stop it?

vnc4server is a script to both run and stop VNC server. It itself exits when work done, leaving server working in background. If I set service with the following config start on (local-filesystems ...
0
votes
0answers
17 views

How to make upstart service script running under root?

To make upstart service, I do the following, which I don't know is correct: 1) creating SERVICE.conf file in /etc/init 2) creating symlink to /lib/init/upstart-job with the name of the service in ...
0
votes
0answers
14 views

How do I start an ncurses program in a screen session as a specific user at boot and grap a virtual terminal

I want to start a ncurses program at boot that will display on the screen at boot, but within screen so that I can ssh into the machine remotely and see what is being displayed. The program and the ...
1
vote
2answers
61 views

Disable touchpad at login screen

EDIT (revision 4) According to this ubuntuforums.org post, upstart cookbook and CameronNemo's answer, I tried to change the first line with start on login-session-start and I moved the conf file ...
0
votes
0answers
162 views

Ubuntu 14.04: plymouth-upstart-bridge terminates during boot

In Ubuntu 14.04.1 with 3.13.0-37-generic kernel, I get this message while booting up (few previous messages added for context too): [ 4.951362] sr 1:0:0:0: Attached scsi CD-ROM sr0 [ 4.951519] ...
0
votes
1answer
33 views

Reconfigure system (network) during boot based on HyperV information

I am running a HyperV environment with Ubuntu 14.04 server running in generation 1 guests setups. It runs nicely. I want to be able to clone the system (while shut down), give it a new name, and ...
0
votes
0answers
16 views

Forced reboot stopping in grub on HyperV

On 14.04, running on HyperV (Windows 8.1, deploy planned for 2008R2). For a complicated reason, I need to occasionally force a second reboot while the system is booting (I will also post a question ...
0
votes
0answers
31 views

Upstart: how to set init-wide environment?

How to define environment variable for /sbin/init process? So that it will be inherited by all processes in system.
3
votes
3answers
101 views

How do I create a single-execution Upstart job guaranteed to complete before two other jobs begin?

How does one write an Upstart task that is guaranteed to run only once after each startup but is also guaranteed to run to completion before either one of at least two other jobs start running. I do ...
0
votes
0answers
45 views

Upstart configuration for (possibly) multiple levels of fork

I need to start a loader process at system start-up which will look around to determine if it is being ask to accept an update, and if not fork a server process which will normally run forever and ...
0
votes
1answer
25 views

Unexpected interruption in Ubuntu starup file

I got a problem with the upstart files of Ubuntu in /etc/init/. I am trying to run a process if it does not already exist. So I wrote a conf file and start with "start" The following two files are ...
0
votes
0answers
39 views

Given a user, how to control which services to disable after starting a graphical session?

I am not familiar with upstart, yet. When I start KDE with my own account upstart starts a lot of services as far as I understand. But I have some other users that I let them use openbox because I ...
0
votes
1answer
32 views

Run multiple command in upstart service

I have a directory in my home folder that contains the application that I need to run on startup. Here is the directory structure home/ application/ bin/ startup.sh I run this ...
0
votes
1answer
33 views

Upstart doesn't recognize desktop-unlock event

I created an Upstart job under /etc/init and it is a simple job as: start on desktop-unlock exec <my script> My script is under /usr/bin and is executable. But it seems Upstart only ...
0
votes
2answers
22 views

How do I manage session options (sound in my case) when starting program with xinit?

I have tried but failed to find proper information about xinit, in order to understand why it is that when boot into Unity and then start an application (xbmc) all is well, but when I try to use a ...
1
vote
1answer
74 views

xbmc upstart scrip delivers no sound

I want xbmc to start on boot, as well as restart when it crashes. Currently, I auto-login to a user ('public') and have xbmc as a startup application. But if xbmc crashes it does not restart, which is ...
1
vote
2answers
97 views

How do I convert a sysv-init script to an Upstart job?

I would like to convert the slapd LDAP server init script to an Upstart service. However, I have very little knowledge of SysV init scripts (and the LSB(?) stuff). Specifically, I'm interested in the ...
1
vote
2answers
810 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 ...
1
vote
2answers
398 views

Why isn't one 'bash' command working at startup

I am working on a VM with Lubuntu 14.04, I have created a script a.sh, #!bin/bash echo "aaaa" >> a.txt And my /etc/rc.local file is as follows: #!/bin/sh -e # # rc.local # # This script is ...
0
votes
1answer
26 views

How to specify when a daemon should stop during system shutdown?

I have written a FUSE to combine a local and remote file system as one virtual FS. The problem I am seeing is that when the system shuts down (i.e. root issues a reboot), my FS dies before all the ...
1
vote
1answer
42 views

Using upstart for non-daemon tasks

I would like to have foo do-startup-things run on boot, and foo do-shutdown-things run on shutdown where foo is my own program. It looks like Upstart is a good candidate to do this, but Upstart seems ...
0
votes
2answers
193 views

upstart multiple parameters

So Im working on a upstart process and wanted to know if I could pass in multiple parameters my-upstart-service restart PARM1=foo PARM2=bar PARM3=hello Here is kinda what I had in mind description ...
1
vote
2answers
370 views

How do I run a script on Unity login/logout?

I have two scripts - one to mount some folders over SSHFS - and one to unmount. I would like to launch the mount script when my default Ubuntu desktop is launched (after I log in at the graphical ...
0
votes
0answers
74 views

Upstart Auto restart mysql when it stops

I was searching for a upstart script to auto restart mysql service when it crash since I need to manually use: sudo service mysql restart I'm new to ubuntu and I did not find it after many ...
0
votes
1answer
211 views

Upstart - Start-stop-daemon vs exec

I am writing my first init conf file using upstart. I would like to know what are the advantages of starting my daemon using start-stop-daemon. Why is it better then just: exec /path/to/my/daemon ...
1
vote
1answer
161 views

Export env variables to grandchild jobs

I have a set of upstart scripts, generated by foreman from a Procfile, to start my web service and async task queue worker. The way foreman generates the scripts is as follows: app app-web app-web-1 ...
0
votes
0answers
20 views

Upstart: wait for webping

I'm using upstart to start my server, but I would like the start process to wait for the localhost:port/webping to be available (200 OK) before considering the startup successful, so the automatic ...
11
votes
2answers
527 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 ...
0
votes
0answers
37 views

Why `initctl status tty1` gets `Unknown job: tty1`

# initctl status tty1 initctl: Unknown job: tty1 But there is a tty1.conf file in /etc/init and I haven't modified it: # cat /etc/init/tty1.conf # tty1 - getty # # This service maintains a getty on ...
1
vote
0answers
161 views

Start jackd with realtime priority with upstart

I'm trying to start jackd with realtime priority at boot with an uptstart script but with no success so far. I'm using ubuntu server 14.04. My upstart version is 1.12.1. The user and group I'm using ...