Questions tagged [upstart]

Questions specific to the "upstart" init system. Do not use for general init issues.

35 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
399 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 ...
4
votes
0answers
952 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
336 views

Upstart service killed by TERM signal, how to track that

I have upstart script as description "My API API" author "me@localhost" env MY_API_PYTHON_HOME=/opt/services start on runlevel [2345] stop on runlevel [!2345] script mkfifo /tmp/my-api-log-fifo ...
2
votes
0answers
168 views

Deploying an upstart project on a systemd machine with Capistrano

I am trying to configure a deployment for a Ubuntu 14.0.4 app on a RHEL 7 machine and the upstart-systemd difference is causing a lot of issues (foreman scripts ...). Does anyone have experience on ...
2
votes
1answer
122 views

Excecute Upstart script after a specified service is running

I have two upstart scripts, one to start the teamspeak server and one to start the teamspeak bot as showed below. teamspeak.service: [Unit] Description=Teamspeak Server After=network.target [...
2
votes
0answers
146 views

Upstart services only work on startup

I'm working on Raspbian Jessie and I wrote my upstart script by follows this tutorial. Here is my /etc/init/videostream.conf script file. # RPI Camera Service description "RPICAM streaming" ...
2
votes
1answer
424 views

Confusion about systemd, environment files and command-line arguments to the service executable

I'm trying to convert an upstart script to systemd, but I can't figure out how to pass command line arguments to the executable. Here is the original upstart script: # job description description "...
2
votes
0answers
527 views

Linux: Why do init and systemd use so much I/O?

This is probably unanswerable. But maybe someone else will have this problem and find this question, append to it, or proffer an answer. I discovered the pidstat command with its -d option, today. ...
2
votes
1answer
668 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 ...
2
votes
0answers
666 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
1answer
176 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 - ...
2
votes
0answers
472 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 ...
2
votes
2answers
178 views

View console output from an Upstart job without logfiles

I wrote a custom Java server. I am running it using Upstart (/etc/init/myservice.config) where I launch java -jar myservice.jar. The java process uses System.out.println to write log messages of all ...
1
vote
0answers
98 views

Upstart script with expect scripting

Please give me advices about expect scripting combined with an upstart script. There are 3 scripts that I am dealing with right now. Script A) Java program PATH: /opt/~~/manager Script B) ...
1
vote
1answer
656 views

How can I have systemd execute a script only if a service was stopped via systemctl, but not execute if it crashed by itself?

What I am looking for, is the equivalent of the pre-stop stanza in upstart, for systemd
1
vote
1answer
2k views

Unknown runlevel on Ubuntu 14.04, services not starting on boot

I rent a VPS from a VPS company and run an Ubuntu 14.04 web server there. Recently it had to be suspended by my provider for a while. After the suspension period (1-2 days), the VPS boots, but cannot ...
1
vote
0answers
144 views

Systemd: Running a script before msyql stops on shutdown

On my Ubuntu 14 vagrant box I use this upstart script to run automysqlbackup on every vagrant halt: description "run automysqlbackup" start on stopping mysql task exec automysqlbackup So ...
1
vote
0answers
118 views

Upstart conf to require syslog

Translating SysV to Upstart I want to turn this to Upstart: # Required-Start: $remote_fs $syslog # Default-Start: 2 3 4 5 I'm stuck with translating $syslog.. start on (runlevel [2345] and ...
1
vote
1answer
32 views

Created upstart job that works - system doesn't boot to CLI but everything works SSH,RDP etc

The thing is I happen to have a monitor near me where I can watch my server boot and at boot it never makes it to the login prompt. It is just staying at right after it runs my Upstart Job. VRDE ...
1
vote
1answer
443 views

upstart environmental 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 won't work because the env ...
1
vote
0answers
429 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
1answer
1k 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 ...
1
vote
1answer
771 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 ...
1
vote
0answers
629 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
357 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
1answer
3k 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 "...
0
votes
1answer
40 views

keep upstart job running?

When i run below UpStart job, UpStart job automatically stop when script ends. Is there any way to keep it running until i run initctl stop testjob. Like we use RemainAfterExit=yes in Systemd and it ...
0
votes
1answer
522 views

Init running in Debian 9.1

I have the /usr/lib/systemd and /etc/systemd directories, and systemd is running. But I also have the /etc/init/ directory, with several .conf configuration files, I thought this was a sign of ...
0
votes
1answer
358 views

How do I import Amazon EC2 instance/user data into the environments of the services on my machine?

I am using Ubuntu 14.04 and 16.10; so my init system can be either upstart or systemd. Things like How to set an environment variable in Amazon EC2 over on Stack Overflow show how one fetches an ...
0
votes
1answer
364 views

Upstart Zookeeper script hangs and does not start

I've been writing a Zookeeper upstart service script as follows: description "ZooKeeper" limit nofile 32768 32768 start on runlevel [2345] stop on [!12345] respawn respawn limit 2 5 umask 007 ...
0
votes
1answer
100 views

CentOS6 /Rhel 6 boot process

I need some help to understand the boot process. I am reading this documentation which should be the same, please correct me if I am wrong https://access.redhat.com/documentation/en-US/...
0
votes
1answer
370 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 /tmp/...
0
votes
0answers
402 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: https://stackoverflow.com/a/26756839/4749164, so i can use expect daemon/fork - option in upstart? i would like to run my ...
0
votes
1answer
213 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 "node....
0
votes
0answers
829 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 ...