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

learn more… | top users | synonyms

0
votes
0answers
29 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 ...
0
votes
0answers
31 views

systemd underestimates boot time. How can I try upstart?

Sorry in advance if this is a stupid question, but I'm new to this issue and every time I google it, I just get comparisons of upstart versus systemd. Anyway, my Samsung laptop with Mint 18 is taking ...
0
votes
1answer
29 views

How to start the upstart process for golang application?

I am using upstart to start my golang application. I have my application folder structure like this, Web-app/ /app main.go I built the application $cd /home/ec2-user/go/...
0
votes
0answers
13 views

KDE: Does not log dbus name

I'm new with KDE. I have ubuntu 14.04 and installed KDE on it, I'm logged in as user A, create process as user B, that process creates session for user B(using /etc/gdm/Xsession startkde), as I know ...
3
votes
0answers
48 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" ...
1
vote
1answer
33 views

How to start a service on boot after ldap account is available

I have a machine hosting an LDAP database and services on other machines run as users from that database. Because the user accounts does not exist locally, the services fail to start when those ...
5
votes
2answers
62 views

Making environment variables available for downstream processes started within an init.d script

This questions stems from @FrustratedWithFormsDesigner comment. How do I make export environment variables set within an init.d script available to downstream processes started within that same init....
3
votes
2answers
323 views

Why this error about upstart/systemd with runit?

I run sudo apt-get install git-all in Ubuntu 16.04 and see the following in the end Setting up runit (2.1.2-3ubuntu1) ... start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/...
0
votes
0answers
72 views

How to create a systemd Service for Consul in RHEL7 [closed]

I have setup a consul cluster and I want to make sure that the agent starts by itself whenever the server is restarted. In order to achieve this, I have created an Upstart Service at '/etc/systemd/...
2
votes
2answers
178 views

How to use Upstart scripts on CentOS7?

I am learning some stuff about object storages and have an example: I need to create a file /etc/init/start_swift.conf with following commands: description "mount swift drives" start on runlevel [234]...
3
votes
1answer
64 views

Is there any systemd equivalent to “initctl emit”?

In upstart, it was possible to send custom events with initctl emit custom-event. It was also possible to use these custom events on the start on and stop on stanzas. Does systemd provides something ...
1
vote
1answer
65 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 "...
0
votes
1answer
39 views

Upstart job starts the script twice

I am using Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-85-generic x86_64) where I created a simple Upstart job: # content of /etc/init/listener.conf start on runlevel [2345] stop on runlevel [!2345] ...
1
vote
0answers
69 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
1answer
32 views

How can output of runlevel be “1 S”?

When I switch from runlevel 3 to runlevel 1 on my CentOS 6 box the output of runlevel is 1 S: # runlevel 1 S I'd expect the output to be 3 1. It's not a big deal but I'm keen to understand the ...
4
votes
1answer
103 views

When is the appropriate time to start Redshift using upstart?

I have been trying to get Redshift to start before login so that the bright welcome screen does not blind me, in particular when switching users. Running Redshift as a service does not seem fully ...
0
votes
0answers
110 views

Bash script is not executing after reboot command Ubuntu 14.04

I've tried using a /etc/init.d/ script, an upstart script, crontab, etc. None of the above are causing the script to execute on boot. The service I am attempting to automatically start on boot is ...
1
vote
0answers
87 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. ...
0
votes
1answer
251 views

How to set the nofile limit on rsyslog with upstart?

I'm struggling to work out how to set the open file limit on rsyslog on Ubuntu 14.04. It uses Upstart, which ignores limits.conf, but I'd expect to be able to put limit nofile 16384 16384 in /etc/...
1
vote
0answers
22 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 ...
0
votes
0answers
26 views

Service cleanup before reboot

Is it possible to determine or control how much time rc6.d scripts have to stop service (e.g. perform some cleanup, complete network transaction) before being forcibly killed? Do newer init systems ...
0
votes
1answer
28 views

How to enable/disable services with upstart 0.6.7?

I need to disable a service in RHEL, before upgrading it. Stopping it does not do the trick, because it uses the respawn stanza , which causes it to start immediately after I stop it. The method in ...
1
vote
1answer
46 views

Abortable task on startup on Ubuntu 14.04

I have a VM that needs to boot up, perform a specific task, and then shut itself down. It also needs to be possible to abort the special startup sequence to get the "regular" bootup behaviour, i.e. ...
0
votes
1answer
2k views

Autostart Virtual Machine VBoxHeadless at boot with Upstart - init and Graceful exit

So I have another computer running 24/7 and I forget to turn it back on when I restart. I also want it to gracefully save when I reboot so in the event I kick somebody off their work is not lost! I ...
1
vote
1answer
19 views

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

So I am new to creating an Upstart Job, but I got one that works! 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. ...
0
votes
2answers
247 views

Upstart and multi-signal shutdown process

I'm running a resque worker service on Ubuntu, and I want to manage it using upstart (the default process manager for Ubuntu). A proper shutdown sequence for a resque worker is to send the QUIT ...
2
votes
1answer
127 views

No windows frames on VNC screen

I am trying to configure good virtual desktop on my headless headless Ubuntu 14.04 server. Unfortunately, I see the following picture when open remote screen: I.e. windows have no frames and ...
1
vote
1answer
26 views

upstart jobs - privileged vs unprivileged

On one of my VMs, some upstart jobs were failing, and when I checked df, showed that I had run out of disk-space (Use% was 100 on /dev/sda1). What I did not get is: the jobs which were running with ...
0
votes
1answer
166 views

How to set upstart as default on Debian?

I have a virtual server running Debian. For some reason it doesn't boot if I am using sysvinit. I assume the problem lies with the host operating system, since it's a Virtuozzo based machine and not ...
1
vote
1answer
90 views

service stop doesn't run the exit/cleanup part

This is a sleeping service, import time bufsize = 0 f = open("/home/user/sleep-log", "w", bufsize) try: f.write("going for a deep sleep......") time.sleep( 1000000000) except: import traceback; ...
2
votes
1answer
129 views

How to name and where to place upstart script?

I want to start a watchdog kicker on startup but am unsure how to name and where to place my upstart script. start on startup respawn script /usr/sbin/watchdog end script Reference: http://...
2
votes
1answer
115 views

problem with upstart

Hi i got always an error message that my upstart script doesnt start. start: Job failed to start My script is: description "Tagger Version 2" start on runlevel [2345] stop on runlevel [!2345] ...
0
votes
1answer
190 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/...
1
vote
0answers
36 views

Show kernel parameters passed to init [duplicate]

I learned that if the kernel does not understand a parameter, it saves it and passes it to init when performing the user space start. While e.g. in show parameters of running kernel or How to display ...
0
votes
0answers
163 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 ...
2
votes
2answers
503 views

Does Debian Testing use Sysvinit, Systemd or Upstart? How do I configure it (them?)?

I have a copy of Debian Gnome, installed from live medium then upgraded to testing. I've decided to change my default X environment from GDM to i3 for reasons of productivity. This lead me to wanting ...
0
votes
2answers
345 views

Respawn MySQL on Ubuntu? Server ran out of memory, killed MySQL & Apache, MySQL didn't respawn

Just as above, I increased the RAM (it's a VM), but that doesn't give me a safety net. I was under the impression by default it should respawn, but that doesn't seem to be the case. *Ubuntu 10.04 ...
0
votes
1answer
2k 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
228 views

How to send an email using UPSTART if my executable gets restarted?

I am using UPSTART to restart my executable if by any chance it goes down and it works fine. start on runlevel [2345] stop on runlevel [016] chdir /opt/data/data_server respawn post-stop script ...
0
votes
1answer
314 views

What do +,- and ? symbols represent in `service --status-all`

What do +,- and ? symbols represent in service --status-all represent in Ubuntu 14.04. I am not able to understand it properly. I guess + here might mean delayed services which start after the ...
1
vote
2answers
4k views

How to restart my java program automatically if it gets killed?

I am running my runnable jar in linux machine (machineA) as shown below. In the runnable Jar, I have a java program which sends email to me every 15 mniutes. /usr/lib/jvm/java-1.7.0-openjdk-amd64/bin/...
1
vote
1answer
189 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 ...
4
votes
0answers
227 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 ...
1
vote
0answers
215 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
2k 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 "...
2
votes
1answer
212 views

Ubuntu init script failed - trying to find out more detail about the error

My /var/log/boot.log shows this under Ubuntu 14.04: ... * Starting servicename <br> chown: invalid user: ‘username’<br> No passwd entry for user 'username'<br> * Starting ...<...
1
vote
1answer
2k 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 ...
4
votes
2answers
1k views

Identify if server boots using upstart or sysvinit

I am a not a experienced linux user/admin, but last week I acquired a raspberry, and installed on it a Raspbmc, based on Debian distro. I am having some troubles trying to identify which scripts the ...
1
vote
3answers
3k views

Replacing Upstart with Sysvinit in Wheezy results in error

I have a Debian Wheezy server with upstart installed. I removed upstart and replaced it with sysvinit, which resulted in the following error: apt-get install --reinstall sysvinit Reading package ...
2
votes
1answer
487 views

Upstart - setuid inside post-start stanza

I have this upstart script that looks a bit like this: setuid userA setgid userB script # ... bunch of stuff run as userA end script post-start script # ... command run as userA # ... ...