Questions specific to Ubuntu's "upstart" init system. Do not use for general init issues.

learn more… | top users | synonyms

3
votes
1answer
527 views

The equivalent of start-stop-daemon for RedHat 6

I have an upstart script to create a service in RedHat 6: env PLAY_BINARY=/usr/bin/play env HOME=/opt/warda env USER=root env GROUP=root [...] script exec start-stop-daemon --start --exec ...
2
votes
1answer
98 views

How to specify a daemon shutdown command with upstart?

In an upstart configuration how do I define what command should be used to shutdown a server. Lets say I have daemon that has two seperate processes. startup.sh - to start the server shutdown.sh ...
1
vote
1answer
184 views

logrotate custom “rotate” action equivalent for upstart?

In lots of online posts regarding how to rotate your iptables log files, for example here rsyslog config files get reloaded by the postrotate option of logrotate, presumably in order to stop rsyslog ...
1
vote
1answer
262 views

Rotating iptables logs, strange message about script being converted to upstart job

I use a script /etc/logrotate.d/iptables containing entries like: /var/log/in_iptables.log { rotate 4 weekly missingok notifempty compress ...
0
votes
1answer
211 views

Start application as root at boot time on Ubuntu 14.04

I'm working in Ubuntu 14.04 I have an C++ application which I have compiled. I get the executable which name is "program". Well the thing is that this program use opencv and sockets then if I try to ...
0
votes
1answer
85 views

How to add TileStream in autoload CentOS

I'm new with CentOS. I have a installed tilestream. Now want to tilestream start automaticaly after system restart. Do like this tutorial. /etc/init/tilestream.conf #!upstart #description ...
0
votes
1answer
261 views

how to run a script on ubuntu shutdown when it needs network on

I have an upstart script that needs to run on reboot or shutdown, but it needs to access the network to post an http requests and wait for the replies, I tried start on starting rc and start on ...
3
votes
0answers
190 views

Upstart reload does not work

On a virtualised Ubuntu, I used the command $ foreman export upstart /etc/init -f Procfile -e conf/development.env -u ubuntu -a my_app -t upstart And can now start my_app using $ sudo start my_app ...
2
votes
0answers
345 views

exit code of grep in trap where the script is launched by upstart service

recently I encountered a problem in ubuntu upstart and trap in bash shell. I use ubuntu 12.04 the upstart script(/etc/init/player.conf) is: start on (local-filesystems and runlevel [2345]) stop on ...
1
vote
0answers
33 views

What is wrong with this upstart script?

I use the following upstart script: description "myjob" # Start up when the system hits any normal runlevel, and # shuts down when the system goes to shutdown or reboot. start on filesystem or ...
1
vote
0answers
44 views

How to do X when a job hits respawn limit

I have a service named manager, which sometimes updates itself (from some network location). I imagine that if something wrong happens during this update, like a system shutdown, I would replace the ...
1
vote
0answers
71 views

CentOS - upstart script is created, but its never running at all

I have this following setup but its not working in my CentOS 6x (3.10.23-xxxx-std-ipv6-64 #1 SMP Tue Mar 18 14:48:24 CET 2014 x86_64 x86_64 x86_64 GNU/Linux) Step 1: vi /etc/init/a.conf description ...
1
vote
0answers
222 views

Upstart Job as Unprivileged user fails with permission denied

I'm trying to set up a Sage Cell Server (an open source mathematical engine) running as an unprivileged user. I've created the unprivileged user sagecell to do the job. It is installed correctly and, ...
1
vote
0answers
243 views

How to manage 2 vm using upstart?

I use an upstart script to monitor a vm and respawn it when it gets killed. I would like to simulate a failover by doing the following. Create a clone of the VM1 say VM2. When either of them is ...
1
vote
0answers
205 views

Upstart: How to respond to startup of a service, thats not part of Upstart?

I'm running Ubuntu server and playing around with Upstart. I have installed PostgreSQL database server which doesn't use Upstart system, however im also writting an Upstart script that starts another ...
1
vote
0answers
503 views

How is upstart's socket activation used?

Upstart has gained the ability to start a process after a socket is accessed, but I found the feature to be poorly documented. How is a socket-activated daemon and upstart config written?
0
votes
0answers
31 views

How to read the console output?

In "upstart" you can add the following line to your conf file: console output It seems my script is stopped / waiting. How can I see what has been written to the console. I have access only to the ...
0
votes
0answers
59 views

Make upstart log to /var/log/upstart/<service-name> directory

By default upstart logs to /var/log/upstart, and all the service logs are under the same directory. I want to have a directory under /var/log/upstart (say, /var/log/upstart/myservices where all my ...
0
votes
0answers
12 views

where would gmon.out be written if process were started by upstart

I have a binary which I want to profile (is compiled with -g -pg), and its started by upstart. Where would the gmon.out file be written after the process terminates? (would it be written at all!?)
0
votes
0answers
35 views

mountall isn't running, it seems, and no log, and no clue

As shown below, I have /etc/init.mountall.conf, but /var/log/upstart has no mountall.log, and, more to the point, my non-root file system from /etc/fstab does not mount at boot. Mounts fine with mount ...
0
votes
0answers
148 views

Installing Upstart on Centos 5.10 Final… pkg-config dependency issue

I am trying to install upstart version 1.11 from source on a Centos 5.10 Final box. BTW I don't have option or privileges to upgrade this. I am at this point where it is complaining about the ...
0
votes
0answers
566 views

upstart-udev-bridge is using 100% CPU (and a known fix doesn't help)

I'm running Linux Mint 12 on a Latitude D630 and every time I start my laptop (and sometimes when I come back from being suspended), top shows that upstart-udev-bridge is using 100% CPU (and if I do ...