1
vote
1answer
52 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 ...
3
votes
1answer
221 views

How can I restart the SSH daemon on Ubuntu?

When I type in service sshd restart I get a sshd: unrecognized service error. I do have, in /etc/ssh/ a file sshd_config that I use to set config. I can also putty into the Ubuntu box (it is remote). ...
5
votes
1answer
1k views

Disable atd (and other unnecessary startup processes) in Ubuntu?

I just spun up a new 12.04 server and have been having a bit of trouble getting the atd daemon to stop auto-launching. There's been a bit of changing around on the management of startup processes, ...
0
votes
1answer
68 views

How to use UPSTART feature of ubuntu to restart the python script but not as root?

I am running my Python script using upstart feature of Ubuntu so that if for whatever reason my Python script dies or gets killed, it can be restarted automatically and everything is working fine - ...
4
votes
3answers
2k views

Why doesn't docker container start at boot w/ upstart script on Ubuntu 12.04?

Using instructions for Docker auto-start on Linode VPS running Ubuntu 12.04 and Docker 0.8.1, the specified container does not start on reboot. Once booted, I am able to ~$ sudo start [service-name] ...
0
votes
1answer
79 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
2answers
104 views

How to restart python script after one second of going down using UPSTART?

I am running my Python script using upstart feature of Ubuntu so that if for whatever reason my Python script dies or gets killed, it can be restarted automatically and everything is working fine - ...
2
votes
2answers
683 views

How to test UPSTART feature of ubuntu to see my script gets restarted automatically if it gets killed?

I am running my Python script using upstart feature of Ubuntu so that if for whatever reason my Python script dies or gets killed, it can be restarted automatically. So I decided to use UPSTART ...
3
votes
1answer
374 views

Passing in parameters to Upstart

I can do mongod -f /etc/mongodb.conf How do I achieve the same effect when starting mongodb as a service? ie sudo service start mongodb By default this does not read from the config file. I ...
3
votes
2answers
400 views

Why are there both, an Upstart script and an init.d script, for several daemons? [closed]

I am running Ubuntu 12.04.3 LTS and installed several services like Samba, DHCP server, ... I receive the following warning when I run "halt now", "telinit 6" or similar: Since the script you are ...
2
votes
0answers
262 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
2answers
134 views

How to associate a script at boot time to a specific run level?

I am trying to understand how run levels work. I understand the meaning of the 7 run levels and I understand that they were usually configured by /etc/inittab, which used to call /etc/init.d/rc, which ...
2
votes
1answer
77 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
23 views

How to create an upstart process in Ubuntu? [duplicate]

I am trying to create a process to be automatically started and maintained by Ubuntu's upstart (Ubuntu 12.04). I have been looking at this page as well as on this page and I am aware of the upstart ...
5
votes
2answers
9k views

How to start a service automatically, when Ubuntu starts?

I am using Ubuntu 12.04 and want to have a service starting, when the system is booted normally. As 'service' I understand some code, for example cd my_directory; my_command -host 0.0.0.0 -port ...
3
votes
2answers
142 views

Silencing all stdout during bootup

I am looking for a completely silent bootup of my Ubuntu Server 13.04 installation (dumped to file rather than stdout). What I want is the screen to be blacked out (eventually replaced with a logo) ...
9
votes
1answer
1k views

is upstart and supervisord used for the same thing?

I have a some jvm based processes that I need to make sure start whenever my server is rebooted, and also if it stops because of an unexpected error etc. I'm running Ubuntu 12.04 in case in matters. ...
1
vote
0answers
22 views

Upstart script produces folder with question mark at the end. Why? [duplicate]

Possible Duplicate: Bash/Korn shell script edited on Windows throws error ‘…^M: not found’ I'm writting an Upstart job to run Postgresql: description "PostgreSQL 9.1 Server" author ...
14
votes
6answers
19k views

Ubuntu12.04: How to disable a daemon process at startup

I normally use service start/stop or initctl start/stop to start or stop a daemon process but now what I am looking for is to disable a daemon process from starting at startup example mysqld. ...
1
vote
0answers
182 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 ...
3
votes
3answers
383 views

Upstart: How to run a “stop” before stopping other services?

I recently found out about the upstart "service starter" that Ubuntu is using and that is (apparently) the future to start/stop jobs in Linux. It's pretty new to me (I was used to the old SysV system ...
4
votes
2answers
213 views

Upstart - when a given event occurs, in what order are the jobs run?

I am using Ubuntu 10.04.3, and am using upstart as the init daemon (pretty sure this is the default). When a given event occurs, in what order are the jobs run? Specifically, I'm referring to jobs ...
4
votes
3answers
4k views

Is it possible to export env variable via Upstart?

I need to export a variable FOO=stringhere so that system processes could use it. And the place I would like to do this, is Upstart job. Unfortunately, I tried as per Upstart manual to do env ...