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

learn more… | top users | synonyms

0
votes
0answers
34 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
39 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
55 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 ...
1
vote
0answers
13 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
19 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
23 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
28 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
122 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
14 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
1answer
62 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
65 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
21 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
93 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
44 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
98 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: ...
0
votes
0answers
103 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
34 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 ...
2
votes
1answer
69 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
137 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 ...
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
114 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 ...
1
vote
2answers
473 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
215 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
1k 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
0answers
249 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
1answer
164 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
221 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
2k 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. ...
1
vote
1answer
152 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 ...
2
votes
0answers
184 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
153 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
186 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 ...
0
votes
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
961 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
2k 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
370 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 # ... ...
5
votes
1answer
509 views

Upstart and bash function names containing “-”

I inherited some bash scripts where the author used "-" in the function names instead of the more normal "_" e.g.: function a-b { ... } Ugly but legal in bash. Problem is I sourced this inside an ...
0
votes
2answers
139 views

init.d script is not starting under virtualbox

The script is in /etc/init.d: #!/bin/bash VMUSER=myname CURRDATE=(`date +"%m-%d-%Y"` + `date +"%H:%M:%S"`) CURRTIME=(`date +"%X"`) FILE=/home/myname/log/vm-services.log VBPATH=/usr/bin start(){ ...
8
votes
1answer
7k views

Using upstart with stop unknown instance

I'm just getting into upstart so i wrote a very basic script just to print to log file called: vm-service.conf that I put in /etc/init: description "Virtual Images" author "Me" start on ...
3
votes
3answers
2k views

Upstart - load bashrc variable

I'm wondering how to load bashrc variables in an upstart script and run (node.js in that case server). What is the best way to do it? I tried this: exec sudo -u someuser $NODE_PATH ...
1
vote
2answers
2k views

How to start application after login on CentOS?

I am trying to start GUI application with upstart script on CentOS. I have test script located /etc/init/ folder. start on desktop-session-start stop on desktop-shutdown respawn script export ...
2
votes
1answer
717 views

How to start GUI application with upstart?

I have struggled with this problem for three days and I have tried many ways to solve it but not successful yet. I hope you guys can help me... I have an GUI application. I want to start this ...
1
vote
2answers
234 views

Can't get upstart service to honor capabilities(7)

I am developing a daemon started by upstart (Ubuntu 14.04) which needs to run as a non-privileged user (for security), but bind privileged port 443. I am using setcap to set the CAP_NET_BIND_SERVICE ...
5
votes
2answers
323 views

Trigger an init script when a specific device is up and a kernel module has been loaded

On my ubuntu 12.04 servers, I need to write an init.d script that waits until the infiniband interface (device: mlx4_0, interface: ib0) is completely up, and until the knem kernel module is loaded. ...
5
votes
1answer
2k 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 ...
0
votes
1answer
167 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 ...
4
votes
3answers
2k views

How do I start a screen session using an upstart job with a non privileged user?

I have struggled with this problem for two days and have tried many things to fix it to no avail. I'm hoping you guys can help me out. I am trying to create an Upstart job that starts a new screen ...
1
vote
1answer
855 views

upstart writing to syslog in a simple way

I have an upstart script that uses pre-start script exec >/dev/kmsg 2>&1 echo starting program # run my program here npm install node app.js end script to redirect output of a ...
1
vote
3answers
736 views

Send a command with password in upstart script

CentOS 6.5 The server is an AWS AMI, specifically this one I'm trying to use upstart to start a process on boot On this particular box, the root login is disabled, and every time I need to run ...