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

5
votes
1answer
36 views

Set permanent command-line options to upstart

I would like to add a command-line option, such as --default-console=none, to upstart. I believe I can just add these to the kernel invocation line and they will be passed on, is this true? If so, ...
0
votes
1answer
41 views
+50

How do I configure my Upstart scripts to take dependencies into account?

I have install PostgreSQL, Atlassian JIRA, Stash, Confluence and Crowd on a single Ubuntu 12.04 Server. They are integrated and working per Atlassian documentation. One thing I did notice is that ...
217
votes
6answers
230k views

How to enable or disable services?

I read about how to enable and disable services in Ubuntu and it seems that there are different possibilities to manage them. The first method I found is update-rc.d to add new services to startup, ...
1
vote
1answer
30 views

Upstart Job (.conf) Fails to Install

I have a simple package (.deb) wherein the main goal is to create an Upstart job. Call it Foo. It fails to create the job file /etc/init/Foo.conf. Package Definition I have created the package ...
2
votes
2answers
32 views

Preparing a service to use upstart and systemD (compatibility)

We are currently building an cool open source tool to be used as a linux service. so I begin writing an upstart script, But then I wondered, if debian/ubuntu world is moving to systemD, should I write ...
11
votes
5answers
14k views

Upstart script doesn't start

Ubuntu 10.04 I have created this upstart script (/etc/init/pure-ftpd.conf): # pure-ftpd - FTP server description "Pure-FTPd server" start on filesystem stop on runlevel S respawn respawn limit ...
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
11 views

Howto respawn a process on startup

In Slackware I just change one line in initab to run my program in a different console on bootup with auto respawn, how can I accomplish this in Ubuntu .. it seem one need a phd to write a upstart ...
0
votes
3answers
63 views

/etc/sysctl.conf doesn't persist after reboot

In a mission to reduce frequent memory flushes to filesystem, I added the following two lines to /etc/syctl.conf. vm.dirty_background_ratio = 50 vm.dirty_ratio = 80 I then ran, sudo sysctl -p and ...
1
vote
1answer
106 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 - ...
1
vote
4answers
5k views

Why doesn't network-manager start at boot?

I think this started happening a couple of months ago when I upgraded from 10.04 to 12.04. Whenever I reboot, network-manager does not start. I have to manually run sudo start network-manager, and ...
0
votes
2answers
25 views

Networking doesn't start after upgrade with new upstart system

I have upgraded to the stable version of ubuntu server and my network doesn't start. There should be some problem with the new upstart service, because the network seems to try to load a dhcp, but i ...
1
vote
1answer
30 views

How to use UPSTART feature of ubuntu to restart the python script but not as root?

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 - ...
5
votes
3answers
1k views

How can I replace upstart with systemd?

Since Mark Shuttleworth decided to switch to sytemd in the future, I was wondering if I can install it on my Ubuntu now?
2
votes
2answers
75 views

How To Run An Application On Startup Automatically?

I am using "UbuntuServer13.10" and I have Dynamic IP. So for learning purpose, I want to add a host on my dynamic IP to open my server easily from anywhere. For this purpose, I used www.noip.com ...
1
vote
0answers
27 views

Where are Upstart log messages on Ubuntu 13.X?

On Ubuntu 12.04, I can find Upstart log messages in /var/log/syslog. Commands: # initctl log-priority info # initctl emit hello Log: Apr 1 01:56:56 precise64 kernel: [ 8365.820425] init: ...
0
votes
0answers
48 views

What's the proper way to restart X or lightdm on the command line via upstart?

I want to restart the display manager (lightdm in my case, on Ubuntu 13.10) on the command line. What's the proper way to do it? sudo /etc/init.d/lightdm restart from a terminal emulator doesn't ...
0
votes
0answers
24 views

suddenly 30 gb gone from Home in ubuntu how?

Hi noticed a messege showing that less diskspace please clear up space in ubuntu. and when i took properties, i was surprised to see that of my 50gb partition only 4kb is left. then i followed the ...
1
vote
0answers
29 views

How to start xfce4 session inside upstart user session?

I would like to use a upstart user session to run some jobs under user control. My machine has mythbuntu installed which means I have lightdm which starts an xfce4-session. How should I replace my ...
2
votes
1answer
65 views

Audio does not work in upstart job

I'm trying to run the gmediarender UPnP media renderer as an upstart job. When I run it from the command line as myself, everything works fine. When it runs as an upstart job, I get error messages in ...
9
votes
4answers
3k views

Allow non-sudo group to control Upstart job

I'm trying to set up an Upstart job to run on system startup, and that can also be started/stopped by members of a group other than sudo. With a previous version, I usedupdate-rc.d and scripts stored ...
0
votes
1answer
18 views

uptart and gnokii and chroot

I try to run this upstart script. # description "" author "" start on runlevel [2345] stop on runlevel [!2345] #chroot /home/ubuntu/ respawn respawn limit 1 1 exec sudo smsd -u ...
0
votes
1answer
32 views

Failed to create thumbnail error fills gnome-session.log.1 to 50 GB!

Yesterday I got a message that my /home partition was full so I moved a 10 gb folder to a external hdd. now I got the message again so I did the Disc Usage Analyzer, and I found a 50 GB file in ...
0
votes
1answer
24 views

have upstart job prevent different job from stopping

I'm trying to find a way to have one upstart job, which is triggered when another job is stopping, from preventing that other job from really stopping. Basically I have a service which runs, lets ...
1
vote
2answers
53 views

What's the best way to make a Qt executable program run as a service in Ubuntu

I've written my Qt code for an embedded system which is running on Ubuntu. I want to run my program as a service in Ubuntu so I can stop or start it using monit. I've seen some people creating a new ...
0
votes
1answer
106 views

Problem with ~/.cache/upstart

I'm not experienced at all with Ubuntu yet and I know there are lots of things I have to learn, but I'm kinda puzzled about this one. I just got (suddenly after a reboot) a free disk space warning ...
1
vote
0answers
26 views

log files prevent clean root umount

My root fs is always dirty after shutdown. To see why, I added a couple of lines into /etc/init.d/umountroot: /usr/bin/lsof / | /usr/bin/awk '$4 ~ /[0-9].*w/' ... mount -o remount,ro ... /bin/bash ...
2
votes
3answers
756 views

How can I tell upstart to restart a service when a different service is restarted?

I've an OpenERP server running on one of my servers. It's started by a traditional /etc/init.d/ script. It uses a PostgreSQL database and needs a manual restart every time PostgreSQL is restarted. ...
0
votes
1answer
105 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
2answers
580 views

Auto-start Upstart User Jobs on boot

I've enabled Upstart User Jobs and configured a few jobs. These jobs can be started/stopped by the respective user and all is well. However the start on stanza doesn't seem to have effect: start on ...
1
vote
2answers
2k views

Why my upstart script doesn't run?

I don't understant why my script is not running. Here is what I did (I'm using Ubuntu 10.04). I wrote a mountFTP.conf script: description "Mount the remote FTP for sync" start on started tty1 ...
4
votes
1answer
178 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 ...
0
votes
1answer
49 views

No reaction on service mysql start, init script works

After upgrading Ubuntu from 12.04 to 13.10, the MySQL server (now 5.5) does not start/stop with service mysql start|stop. When typing /etc/init.d/mysql start, everything works fine. Once it does ...
0
votes
0answers
19 views

Virsh KVM Domain is marked as autostart… doesn't come up after restarting windows

I have KVM and Virsh installed. When I restart windows inside the VM, the VM does not come back up without issuing a virsh start command. I found this ...
0
votes
0answers
21 views

Can I learn systemd on an Upstart system?

I want to leave my current system running with Upstart (if it ain't broke...). However, I would also like to dip my toe into systemd (in anticipation of the changeover). Is there any way to get ...
4
votes
1answer
113 views

Gnome session log getting too large

Under my user a hidden system folder .cache/upstart/ is getting insanely large - 99G. This is mainly due to a file gnome-session.log. Does anybody know what this folder is and why it may get so large? ...
0
votes
1answer
151 views

Running a daemon process from upstart

I'm running my application on a VPS under Ubuntu 12.04 LTS. And I have a problem with one daemon process for one of my applications. This process is called "delayed_job" (If not familiar - this is ...
3
votes
2answers
110 views

Upstart: Run job after networking has finished starting

I'm trying to start an upstart job after making sure networking interfaces are up. This is what I have now: start on started network-interface INTERFACE=eth0 stop on runlevel [!2345] pre-start ...
0
votes
0answers
21 views

Why does upstart work on 64 bit but not on 32 bit?

I hope someone with better skills on Linux can give me any clue or answer this. I have an upstart service, which has been running successfully on Ubuntu 12.04 server 64 bit. Today I have setup a vm ...
11
votes
3answers
5k views

How to set a Upstart job to start manually?

I want to disable a bunch of upstart jobs here. I know how to make a upstart job. And also I know how to stop manually a job. However, I can't find a sample where I turn a automatically job into a ...
2
votes
1answer
31 views

How can I make sure one Upstart job stops before another Upstart job stops?

Sometimes my server is shut down via an ACPI shutdown, and I've managed to get my process to gracefully shut down. However, my process (Job A) relies on another process (Job B) during its graceful ...
1
vote
0answers
417 views

upstart and incompatible sysvinit scripts

When I reboot or try to shutdown I get the following message: Error: Calling a sysvinit script on a system using upstart isn't supported. Please use the 'service' command instead. How do I find ...
19
votes
4answers
20k views

How to install an init.d script in ubuntu?

I am trying to install an init.d script, to run celery for scheduling tasks. Here is the steps I followed: copied the file celeryd and pasted it in folder /etc/init.d/ created a configuration file ...
2
votes
1answer
254 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 ...
2
votes
1answer
575 views

Upstart tracking wrong PID of process - not respawning

I originally asked this question on StackOverflow. Then realised that this is probably a better place. I have bluepill setup to monitor my delayed_job processes. (Ruby On Rails application) Using ...
1
vote
1answer
291 views

Command fails to execute in upstart session job

This command: mongod --fork --dbpath ../data --smallfiles --logpath ../data/mongo.log runs perfectly from terminal, while in directory /mongo/bin/ But, when I use same command and directory for ...
2
votes
1answer
124 views

Switch raring to systemd [closed]

I know that Raring use upstart as init system. However I'm wondering if it's possible to switch to systemd, as we can do it on Debian. I've found this ppa: systemd : Martin Pitt But the systemd ...
0
votes
1answer
24 views

Why upstart documentation prevents me from using respawn

In documentation I found a note that I shouldn't use respawn if I satisfied with expect. But I cannot understand, how are they interfere. For example, nginx config using both and predictable didn't ...
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 ...
1
vote
2answers
991 views

Upstart job won't start

I have a simple upstart job: - /etc/init/hmastart.conf I want to test it, so i run:- service hmastart start But i receive the following error:- start: Unknown job: hmastart I get the same error ...