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

learn more… | top users | synonyms

2
votes
1answer
115 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
75 views

upstart enviromental variable from command

I am trying to make reverse ssh tunnels to my clients using upstart. I have many clients and they obviously come on and off line at times. This is what I have now but it wont work because the env ...
1
vote
1answer
297 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
397 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
61 views

Upstart job does not trigger (Xubuntu 14.04)

I'm in the process of learning how to use Upstart. I wrote a simple job as a test (file is /etc/init/uptest.conf), using a custom event to trigger it manually: start on uptest task exec touch ...
0
votes
1answer
336 views

update-rc.d squid3 init.d init weirdness

sudo service squid3 status works, implying squid is in upstart. However a listing of services using sudo service --status-all does not show squid. Neither does sudo update-rc.d squid3 defaults ...
0
votes
1answer
1k 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
134 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
427 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 ...
4
votes
0answers
349 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
133 views

Is there a way to develop upstart scripts on fedora 21?

I'm working on creating upstart scripts for an internal service I'm working on. I realize systemd has triumphed over upstart, but our company already has an investment in upstart and I'm just tacking ...
2
votes
0answers
435 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 ...
2
votes
0answers
365 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
121 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). If something wrong happens during this update, like a system shutdown, I want to replace the bad executable ...
1
vote
0answers
1k 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
304 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
248 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
591 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
48 views

restart my app server automatically through upstart script

I have a Ubuntu 12.04 machine in which I am running my C++ app server which I am controlling through upstart script. Meaning whenever my app server crashes my upstart script will restart them back ...
0
votes
0answers
10 views

upstart + telinit: is it really works?

I think about how to backup my ubuntu server, and I want try one possible solution using init levels. So I downloaded Ubuntu 14.04.2 LTS, install it on VirtualBox, and try: telinit 1 It warn about ...
0
votes
0answers
67 views

include Forking - Multi threading in bash script to run it in upstart?

I have lack of understanding. Do i need to include forking in my bash script: http://stackoverflow.com/a/26756839/4749164, so i can use expect daemon/fork - option in upstart? i would like to run my ...
0
votes
0answers
187 views

Linux Mint 17.1(64-bit) freezing on start-up

I am using Linux Mint 17.1(64-bit) dual booted with windows 7. I am a newbie to the Linux community and have been using Mint 17.1 for the last 2 months without any problem. Windows 7 is working fine. ...
0
votes
0answers
24 views

Initctl doesn't show any errors or logs

I installed upstart on Debian wheezy, and now when I run upstart commands it doesn't show me any errors or messages, I run command that should provide me some error. For example: start heeeeeeelp ...
0
votes
0answers
101 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
18 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
616 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 ...