0
votes
0answers
3 views

Identify if server boots using upstart or sysvinit [migrated]

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

Node.js hotswap deployment

I'm trying to deploy my MEANjs application into production... So far I've use jenkins, git,rsync, etc. to copy the project to the remote server. and in the final step I just have to call stop ...
0
votes
2answers
191 views

upstart script not logging to file

Linux CentOS 6.5 Here's my upstart script inside of /etc/init/ start on runlevel [2345] stop on runlevel [!2345] exec /usr/bin/riofs --fuse-options="allow_other" --fmode=0777 --dmode=0777 ...
1
vote
1answer
296 views

Autossh ask for password when running with sudo (or from upstart)

I have an upstart job /etc/init/tunnel.conf: description "SSH Tunnel" start on (net-device-up IFACE=eth0) stop on runlevel[016] respawn exec autossh -nNT -o ServerAliveInterval=15 -R ...
2
votes
1answer
211 views

How to launch a SSH tunnel with upstart

I am not very used to sys admin and recently created an SSH tunnel between two servers (on Ubuntu 12.4) with the following command: ssh -fNg -L 3307:127.0.0.1:3306 tunneluser@xx.xx.xx.xx It worked, ...
3
votes
1answer
348 views

High CPU usage with wineconsole running in background

I have a (pretty simple) Windows console application which I want to run on a Linux server using Wine. When I just run it from the terminal over SSH like wine myapp.exe everything works great. It ...
1
vote
1answer
226 views

ubuntu upstart - how to set global nofile limit?

ubuntu 12.04 I have change the setting: /etc/security/limits.conf * soft nofile 65000 * hard nofile 65000 but cat /proc/{PID}/limits: Limit ...
0
votes
0answers
117 views

Installing Upstart on Centos 5.10 Final… pkg-config dependency issue

I am trying to install upstart version 1.11 from source on a Centos 5.10 Final box. BTW i don't have option or privileges to upgrade this. I am at this point where it is complaining about the ...
0
votes
3answers
178 views

Run upstart after all other init scripts have started

I'm running a CentOS6 instance and have an upstart job that depends on sshd to already be running. However when I boot up the box that job fails to start, I'm guessing because sshd isn't actually ...
0
votes
1answer
51 views

Upstart for monitoring forking daemon?

According to this link, it said Upstart is one of the best options for running traditional forking daemons, since it actually uses ptrace to make sure it's watching the correct process ids. ...
1
vote
2answers
291 views

How to set a binary to init on boot like Apache does (run as a service)

I am trying to setup PhantomJS to run as a service. I found the skeleton file in /etc/init.d and I am running on Ubuntu 12.10. In trying to figure this out I found the symlinks in the /etc/rc*.d ...
1
vote
2answers
228 views

Why need to use exec in upstart script?

I often see some upstart script has the to use exec, what is the point? Seems removing the exec the script also work? e.g. start on runlevel [2345] stop on runlevel [06] exec /path/to/program
1
vote
1answer
223 views

Node.js server is not started after reboot

My Node.js server upstart job config: start on (net-device-up and runlevel [2345] and started td-agent) stop on runlevel [016] respawn env HOME="/var/nodes" script chdir $HOME exec ...
1
vote
1answer
1k views

Upstart: defining service dependencies / priorities

I am working on an app which runs several services / daemons using upstart. These should start on system startup, but only after the DB server (in our case mongo) was started. I am looking for the ...
0
votes
1answer
144 views

How to differentiate between start/stop/status in upstart

upstart has post-start, post-stop, etc... and script. as i understood, the script part gets executed on initctl start X or initctl stop X or initctl status X. so how do i know in script which one ...
2
votes
1answer
53 views

why does upstart start on not work as expected

i have two upstart scripts, and i want the second one to start after the first this is what i have in the second one (dir/second): start on (started runlevel [345] and dir/first) stop on (stopped ...
2
votes
1answer
821 views

Upstart won't reload it's configuration

I have a service I'm trying to write an upstart script for and it's not going too well. At some point, I decided I needed a fresh start and removed the upstart configuration file. stop myservice rm ...
7
votes
1answer
6k views

upstart does not see my job

in Ubuntu 12.10 user@xyz:~$ sudo initctl --version initctl (upstart 1.5) Copyright (C) 2012 Scott James Remnant, Canonical Ltd. This is free software; see the source for copying conditions. There ...
0
votes
1answer
156 views

Upstart - run a command as another user while preserving /etc/environment

G'day, I'm trying to run a command/service on startup with Upstart as a non-privileged user, while preserving /etc/environment. I had some luck in a shell with exec sudo -u user1 -i "/usr/bin/foo ...
2
votes
1answer
2k views

upstart: initctl: Unknown job

I have a job that's perfectly normal: > start c4-ha-policy ; stop c4-ha-policy c4-ha-policy (start) waiting c4-ha-policy (start) starting c4-ha-policy (start) pre-start, process 1731 c4-ha-policy ...
5
votes
1answer
2k views

Equivalent for the “pid file” stanza in newer versions of upstart

I'd like to be able to use upstart to manage daemons where I don't have complete control over the forking behaviour. The "pid" stanza is removed as of version 0.3.9, so I can't point it at a pid file. ...
2
votes
1answer
154 views

Upstart and pre/post scripts

I run into an issue with upstart where I want to update an init config, but just restarting the job doesn't apply the changes. For example: I've got job xyz running I modify the /etc/init/xyz.conf ...
6
votes
2answers
2k views

Upstart : start service after non-upstart process

On Ubuntu 10.04, I need to start my service with upstart, but only when mysql is up and running. The problem is that mysql itself is not handled by upstart, so I can't use the "start on" feature. ...
2
votes
1answer
708 views

How to install init-checkconf for upstart?

Upstart is installed, but init-checkconf is not. Any ideas how to get both? $ sudo init-checkconf sudo: init-checkconf: command not found $ sudo dpkg --get-selections | grep upstart upstart ...
3
votes
2answers
143 views

Is it possible to set an Upstart service to stop $LAST

I'm wanting the rsyslog service to run until the last moment to ensure we receive as much logging as possible on our central logging servers. On Ubuntu 11.04, rsyslog's stop line is set to "stop on ...
1
vote
1answer
1k views

passing arguments to upstart job

I want to run multiple instances of my process by passing an args to startup job: start myapp instance1 start myapp instance2 and so on I want to have one upstart conf file instead of having conf ...
6
votes
5answers
11k views

RHEL 6: View boot messages “behind” the splash screen

I know there was a way to do the above in Fedora. I cannot for the life of me remember what the key was; nor can I find documentation via a web search.
1
vote
2answers
291 views

Process being sent SIGINT when started using Upstart

I have a Linux application which opens up several serial devices (/dev/ttyUSBX) and reads/writes from them. When I run it from a command prompt (Ubuntu 10.04, bash) it works perfectly. $sudo ...
1
vote
1answer
331 views

mysql upstart job hangs if database directory not mounted

Update: Filed as bug #812423 on Launchpad. I have mysqld pointed to an external volume: $ cat /etc/mysql/conf.d/data_joliss.cnf [mysqld] datadir=/mnt/data_joliss/mysql This is working fine in ...
0
votes
1answer
148 views

How can I use upstart with vendor-supplied startup programs?

For instance, I use the following commands to start and stop a particular web application: /usr/local/application/MyServiceController.sh all.start /usr/local/application/MyServiceController.sh ...
0
votes
1answer
201 views

Linux Upstart processes automatically restart

I'm using Upstart on an ubuntu server to manage some server processes I have running. My problem is that if I "stop " a couple of times, the process dies but then automatically starts running again. I ...
2
votes
2answers
165 views

What functionality do I lose by disabling GDM/KDM/SLIM/CDM etc display managers?

so... I've been wondering lately why do I need GDM. I got it disabled for experiment sake through modifying upstart file /etc/init/gdm (I run Ubuntu 10.10 desktop). So now computer boots to command ...
7
votes
1answer
3k views

Using Upstart to Manage AutoSSH Reverse Tunnel

I'm using upstart to manage a reverse SSH tunnel via autossh. When I do a "sudo start tunnel" the connection comes up just fine; however the command is not being automatically run when the networking ...
3
votes
2answers
2k views

Fedora14 serial console how-to needed

Has anyone ever got a serial console working in fedora 14 ? Is it as simple as adding to grub: serial --unit=0 --speed=38400 terminal --timeout=10 serial console and add to the kernel lines: ...
2
votes
2answers
339 views

Upstart event based on level

Upstart provides support for starting jobs based on an events arguments: start on custom-event NAME=foo This will only start the job when custom-event is emitted and the argument NAME has the value ...