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
85 views

Is it possible to run an OPENGL program via a daemon?

My main question is: Is it possible to run an OPENGL program via a daemon (upstart script)? The program displays a window on the screen. More details: I have an opengl program (done with ...
0
votes
1answer
388 views

teamviewerd not starting with lightdm on 13.10

I've installed the upstart-job for Teamviewer 9. According to the config it should start when dbus and lightdm is running, see: start on ( (started dbus or ...
0
votes
1answer
42 views

Is there a way to tell Upstart to log service?

In the logs directory I don't see a log file for my app (with a conf file nomilkforme.conf): z@ubuntu:/var/log/upstart$ ls console-setup.log.1.gz container-detect.log.1.gz module-init-tools.log.1.gz ...
0
votes
1answer
141 views

FATAL: Module rtc not found

Upstart gives "unknown job" error when I try to start the server with $ start <my-app-name>. I found this in the logs: z@ubuntu:/var/log/upstart$ sudo zcat module-init-tools.log.1.gz FATAL: ...
2
votes
1answer
246 views

Upstart unknown job problem

I set up nginx according to instructions here and it all went well but I am unable to start with $ start <my app name> I created /etc/init/nomilkfor.me.conf (this is the domain name) and this ...
1
vote
0answers
95 views

How to run a nohup script with upstart?

I'm porting some SysV-style service scripts for HBase (a java service) to upstart. The sysv scripts don't call java directly, but instead call hbase-daemon.sh. This is a start-stop-daemon-like tool ...
1
vote
0answers
447 views

Synaptics driver doesn't load sometimes

Sometimes (randomly), the synaptics touchpad driver won't load on bootup. When reading /var/log/boot.log, i don't see anything touchpad-driver-like being started when this happens. But the file ...
0
votes
1answer
174 views

An alternative to init.d?

Is there an alternative to Ubuntu's init.d? Like a way of starting and stopping daemons that don't require those monstrous init.d scripts: # cat /etc/init.d/skeleton #! /bin/sh ### BEGIN INIT INFO # ...
1
vote
1answer
287 views

How can I check if upstart is installed in ubuntu server and how can I install it?

I want to install upstart to my ubuntu server 13.10, but I am confused if I need to download the source or install package. In upstart's getting started page I think they instruct to install the ...
0
votes
0answers
277 views

Upstart to manage a byobu'd cgminer

How do I get upstart to manage cgminer in a byobu terminal? Using the upstart script below, I can get cgminer to run with the commented out command, but I can't get it wrapped in a byobu session? ...
6
votes
2answers
386 views

HOME variable is not set

I have two servers, they're identical (I believe), production and staging servers. And I have upstart script in /etc/init/ folder. description "Discoure process" setuid deploy setgid deploy ...
0
votes
1answer
26 views

upstart: mail error report on segfault

I have a process that's managed by upstart. It sends an error report on internal exceptions, but since the app isn't written in C, it cannot catch a SIGSEGV and send an error report on that. (Not ...
2
votes
0answers
25 views

Can't start upstart

I want to run upstart job. I've created upstart file and put it to /etc/init folder #/etc/init/myjob.conf description "test job" start on runlevel [2345] exec /home/megas/test.sh and then ...
1
vote
1answer
336 views

How to run bash script in upstart conf file?

I made bash script "kvm_manage". How should I write .conf script and run my bash script inside? It is possible? I am beginner..
0
votes
1answer
175 views

Nodejs app is starting everyday and eating up memory

I was trying to run ghost node.js application on my ubuntu server. Since I am mostly experimenting with linux systems I have tried a bunch of things and finally managed to make ghost run on server ...
1
vote
1answer
52 views

How can I return non-zero if upstart job fails to start?

How can I return non-zero from an upstart job if it fails to launch the first time? I suspect that respawn might be the culprit here, but perhaps not. The reason I want respawn is because ...
1
vote
2answers
402 views

How to set the umask in 13.10?

Apparently, there's a bug in Upstart that's shipped with Ubuntu 13.10, which overrides the umask set either through $HOME/.profile or /etc/login.defs. Upstart has been updated to fix this in Trusty, ...
1
vote
0answers
111 views

upstart-socket-bridge and python3 example

I'm trying to get upstart-socket-bridge to pass the socket to a Python3 application. Are there any working examples of u-s-b using Python 2 or 3? This example is a test setup only. u-s-b launches ...
0
votes
2answers
246 views

12.04 in VirtualBox doesn't execute any custom startup script

I'm trying to use Vagrant for our development process, mostly web development on a LAMP system. On shutdown of the VM I dump the content of the MySQL database to an SQL file in the shared folder. This ...
0
votes
0answers
76 views

How to run pasuspender from upstart?

I'm trying to write an upstart script for running an application which needs direct access to alsa device (Pianoteq, a piano emulator). It works if runned from console, like so: pasuspender ...
1
vote
2answers
82 views

Tool to disable services and daemons

For the old (and still used in debian) init mechanism there are tools such as rcconf to disable services and daemons. Are there such for whatever is used in Ubuntu (upstart I guess) ? I am running ...
0
votes
0answers
86 views

Creating an Upstart command for TeamViewer to restart if closed

I am trying to create a .conf file for TeamViewer, to automatically restart it if is closed. Does anyone know how to do this? I am running Ubuntu 12.04
1
vote
1answer
562 views

Where's runuser?

I'm making an upstart job, and I need to run an executable as another user. Nothing fancy like su provides, and none of the mixed-up SELinux contexts that come along with it. A quick internet search ...
0
votes
1answer
659 views

Only Guest session can be started

While Ubuntu is starting, the following messages are shown and stays shown for long time: * Starting LightDM Display Manager [OK] * Stopping Send an event to ...
0
votes
3answers
149 views

indicator-datetime stops the disk from spinning down

I'm running Ubuntu 13.10 on a laptop, and have laptop-mode-tools installed. I've noticed that, while running on battery, the laptop's hard disk is not spinning down successfully. About every five ...
1
vote
0answers
26 views

Stop job before it's dependencies

I have a job that does some things and uses other locally installed services (such as the mail server). Sometimes I do an ACPI shutdown but I need this service to complete the ongoing operation ...
0
votes
0answers
96 views

PBIS Open & Ubuntu 13.10 Delayed Logon

I have also found that since upgrading to Ubuntu 13.10 from 13.04 that Active Directory users cannot log into the system straight away even though WiFi is connected (unless thier credentials are ...
0
votes
0answers
207 views

Networking not starting - OpenVZ default Ubuntu 12.04 Template

I have been using HyperVM to deploy OpenVZ Ubuntu 12.04 server instances. Unfortunately, they all boot without networking enabled. I tried inserting int the crontab: @reboot /usr/sbin/service ...
1
vote
0answers
139 views

upstart logs missing

I have been trying (unsuccessfully) to automate a script (or at least the actions contained within) that I run in Terminal each time a reboot my system, to enable the WiFi. I have been following as ...
2
votes
1answer
323 views

Upstart kills all process started by script

So I use Upstart [myscript] to start a script [A], which starts another script [B], which in turn starts some other scripts [GROUP C]. When I run stop [myscript], I encounter the unusual behavior ...
1
vote
0answers
166 views

UPSTART services all hang when stopping (stop/waiting)

I am using Ubuntu 13.10 After an IPL, there are many run once services that hang, they are all in STOP/WAITING status. Also, if I try to stop any normal service like apache2, mysql, vsftp I get the ...
0
votes
0answers
85 views

Best way to ensure a VPN connection starts (and hopefully remains)

Ok, trying again :) I tried to find the answer to this on my own, and that led me to the first suggestion in this topic... which, through a Series of Unfortunate Events, let me to hours and hours ...
0
votes
0answers
119 views

System init daemons do not show even if “initctl” is executed with “sudo.”

I'm using Ubuntu 13.10. Today, It became impossible to control php5-fpm daemon from the shell like the following: $ sudo service php5-fpm start start: Unknown job: php5-fpm After several hours of ...
0
votes
1answer
33 views

Multiple shutdowns for Upstart script

I need a script to shutdown differently depending on whether a user called stop or the system is going down. Some background: I have two primary functionalities for ending a continuous process that I ...
3
votes
1answer
281 views

Auto restarting asterisk and mysql using upstart

I want asterisk and mysql to be able to auto-restart if anything were to happen to it, like if it crashed. I found a guide with what I'm looking for, but it's written assuming that the /etc/inittab ...
1
vote
1answer
1k views

Creating a very simple upstart script

So I've been attempting to create an incredibly simple upstart script. I started with: console output exec /srv/scripts/test.sh But got this error: start: Job failed to start So I changed it ...
0
votes
0answers
132 views

“Normal” variables in Upstart

I haven't quite figured out, how to use "normal" bash variables in an Upstart script. Basically, I just want to do this. DAEMON="/usr/bin/redis-server" DAEMON_ARGS="/etc/redis/redis.conf" ...
0
votes
1answer
133 views

but I didn't use /etc/init.d/ in my command!

How can I get this command to work again? $ service tftpd-hpa -start Rather than invoking init scripts through /etc/init.d, use the service(8) utility, e.g. service tftpd-hpa -start The script you ...
0
votes
0answers
70 views

Issues with ganglia and upstart in 13.04

I'm having an issue with ganglia-monitor and upstart. Just after installing it starts and it cannot be stopped. I tried to solve it following http://upstart.ubuntu.com/cookbook/#expect but I can ...
4
votes
1answer
174 views

Is upstart a solid replacement for anacron yet?

Upstart FAQ says: Will Upstart replace cron, atd or anacron? Yes. A planned feature for Upstart is the ability to generate events at a particular scheduled time, regular scheduled time or ...
-1
votes
1answer
769 views

Why the services do not start at installation?

I've seen this sometime now, but not finding anything in the ubuntu man about this peculiar policy-rc.d binary that prevents services from being started/restarted/stopped when called by dpkg/apt, so I ...
0
votes
1answer
330 views

Ubuntu upstart: Why does restart do the same thing as stop?

This is my upstart file /etc/init/myapp.conf: description "Example of starting Node with Upstart and Forever" start on filesystem or runlevel [2345] stop on runlevel [06] expect fork console ...
1
vote
0answers
359 views

Changing a start up init.d script to use with new ubuntu

This is my code. I would like to change it to use with new versions of ubuntu. The thing is ubuntu doesn't have chkconfig any more. Also I heard that new ubuntu uses upstart instead of init type start ...
0
votes
1answer
175 views

Init.d script problem

The init.d script is installed properly and by me i wrote the script correctly. But i have a very strange situation. The script executes a multi-threaded program written in c++ by me. If i execute the ...
0
votes
1answer
91 views

upstart jobs and “and” conditions

I am trying to get an upstart job to start after both 2 other jobs have completed. As an example, I have debug.conf that looks like: start on stopped networking and stopped screen-cleanup task ...
1
vote
2answers
183 views

Upstart - start after task finished

I have an Upstart job configured using the task stanza, which another job depends on being finished before it starts. However, this job must also wait for a different service to be started before it ...
1
vote
1answer
103 views

Upstart is not finding my job

Hi there I have made the following job: description "Emacs daemon" start on runlevel[2345] stop on runlevel[!2345] expect daemon respawn respawn limit 10 5 # respawn up to 10 times, waiting 5 ...
0
votes
2answers
75 views

Why can't I connect to this service when launched via Upstart?

I have a web service written in Golang that I need to fire up using Upstart. I can run the service executable (named word) on port 5555 from within it's directory manually like so: PORT=5555 ./word ...
0
votes
0answers
135 views

How to keep SSH running without connection drop on Ubuntu 12.04

I use a Raspberry Pi ssh to my Ubuntu web server to manually run an application that would not work with keeping it run with Upstart or other daemon tools. However, within hours the connection would ...
0
votes
1answer
71 views

Limit the parallelisation of Upstart?

If I understand right, Upstart runs all tasks that are ready to run in parallel. However, is there a way to limit the amount of parallelisation? That is, the number of parallel tasks that are run ...