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

0
votes
2answers
66 views

What is the easiest way to create a meta upstart script

I want to have a "meta" upstart service that start/stops several other upstart services. What is the easiest way to do this?
2
votes
2answers
326 views

Upstart instance job on system reboot

I am using upstart instance jobs to start few of my services. The jobs are meant to have one instance per user i.e they take in the user name as the instance parameter. I have also configured them to ...
2
votes
1answer
368 views

Stuck on login screen!

I have only one user account on Lubuntu 13.10 and the automatic access was enabled. I decided to change this option, I wanted to see the login screen on startup where I can choose the user and run the ...
0
votes
0answers
54 views

Is there an upstart event for a process listening on the network?

I'd like to take an action whenever a process begins listening on a port, I tried using upstart-monitor and "nc -l", but I didn't see any events being generated.
1
vote
1answer
1k views

Upstart: Start server after mongodb

i would like to start a server after mongodb has started. Is it correct to use start on started mongodb? Example upstart script: start on started mongodb stop on starting rc RUNLEVEL=[016] respawn ...
1
vote
1answer
99 views

MongoDb installation failing

I am following te simple steps to install mongodb: First: apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 Worked Good Second: echo "deb ...
2
votes
1answer
148 views

Upstart cannot determine daemon's pid

There is a daemon mydaemon, which has not a very pleasant interface. So that mydaemon-parser.py was written to parse configuration files and start as many mydaemon instances as needed. ...
0
votes
1answer
201 views

How to save “initctl” log-priority options?

I would like to save init log-prority debug options. What is the whole process from startup event? However, the init log-priority option to reboot and reset to the message. What should I do? If ...
1
vote
1answer
313 views

How to restart python script after one second of going down using UPSTART?

I am running my Python script using upstart feature of Ubuntu so that if for whatever reason my Python script dies or gets killed, it can be restarted automatically and everything is working fine - ...
3
votes
3answers
5k views

upstart job works only with manual start/stop

I have a very small upstart job in /etc/init/tsm.conf to start backup client after network starts. It works just ok if I start/stop it manually via service tsm start|stop|status. But service tsm ...
1
vote
1answer
79 views

Upstart service not starting when a service it depends on starts

I have a service called service C. It has the following start and stop conditions: start on ( started A and started B) stop on (stopping A or stopping B) When I manually stop A, C stops. However, ...
0
votes
0answers
261 views

Ubuntu taking forever to boot

hi well this started happened after i only installed Ubuntu for few days less than a week on my new pc:) well i only go to windows 8 that i chosed alongside for downloading! i just went yesterday to ...
1
vote
0answers
318 views

Logging out from Ubuntu takes too long

When I first had only Unity as a desktop manager, I didn't need to log out so I'm not sure if this issue has been around before. I'm say so because It's important to know that I currently have Xfce ...
0
votes
1answer
139 views

Problem with upstart sessions: unable to granpt:Exec format error

I have a very specific problem. I have installed an arm ubuntu 13.10 on chromebook with original chromebooks linux kernel. And I got the strange errors in ~/.xsession-errors which prevents me to ...
1
vote
2answers
877 views

Purpose of “postrotate invoke-rc.d rsyslog rotate” when logrotating, and is this command outdated?

When using logrotate to keep log files rotating, I have seen postrotate invoke-rc.d rsyslog rotate > /dev/null endscript I know postrotate makes bash execute the following ...
1
vote
0answers
63 views

Ubuntu 12.04 init won't re-read configuration

I'm running a vnc server under control of init. This is configured using a file under /etc/init. So far, so good. Now I want to make a change to the vnc.conf file, to change some of the command line ...
1
vote
1answer
228 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
903 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
55 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
542 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
914 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
134 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 ...
4
votes
1answer
2k 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
305 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 # ...
4
votes
2answers
2k 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 ...
8
votes
2answers
1k 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
42 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 ...
3
votes
1answer
61 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
909 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
258 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 ...
2
votes
1answer
162 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
538 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
175 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
527 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 ...
1
vote
2answers
133 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 ...
2
votes
1answer
945 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
958 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
172 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 ...
3
votes
0answers
36 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 ...
1
vote
1answer
211 views

upstart logs missing [duplicate]

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 ...
5
votes
1answer
688 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
228 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 ...
1
vote
0answers
199 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
35 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
839 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
3k 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 ...
2
votes
0answers
400 views

“Normal” variables in Upstart [duplicate]

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
314 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 ...
4
votes
1answer
333 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 ...
3
votes
1answer
4k 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 ...