The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
20 views

Make upstart log to /var/log/upstart/<service-name> directory

By default upstart logs to /var/log/upstart, and all the service logs are under the same directory. I want to have a directory under /var/log/upstart (say, /var/log/upstart/myservices where all my ...
1
vote
2answers
22 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
4answers
150 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 - ...
1
vote
0answers
26 views

where is upstart jobs pid held [closed]

Since the upstart command keeps giving me the wrong pid for a job no matter what I try, I would like to manually change it to the correct pid. Does anybody know where the pid for upstart jobs are ...
0
votes
0answers
10 views

where would gmon.out be written if process were started by upstart

I have a binary which I want to profile (is compiled with -g -pg), and its started by upstart. Where would the gmon.out file be written after the process terminates? (would it be written at all!?)
2
votes
1answer
77 views

Running services without sudo

I want to run a nodeJS web server on a couple of machines which I don't have sudo access on. What would be a good way to do this? The two requirements are: running the service without being ...
2
votes
1answer
26 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 # ... ...
1
vote
1answer
101 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 ...
5
votes
1answer
27 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
50 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(){ ...
2
votes
3answers
65 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
1answer
70 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 ...
4
votes
2answers
60 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. ...
1
vote
2answers
38 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 ...
0
votes
1answer
53 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 ...
1
vote
0answers
147 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 ...
6
votes
4answers
4k 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
47 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 ...
2
votes
1answer
87 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 ...
3
votes
2answers
203 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
126 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 ...
0
votes
2answers
4k views

service vsftpd restart : not working

I edited /etc/vsftpd.conf on my remote server. Now to restart the vsftpd, I ran ravbholua@ravi:~$ sudo /etc/init.d/vsftpd restart [sudo] password for ravbholua: Rather than invoking init scripts ...
1
vote
2answers
96 views

Upstart: launching something only once

Fact: If you use start on <event> for a job, your job might be run every time <event> occurs. The upstart cookbook mentions two methods to run a job only once. The first is logical to me, ...
1
vote
1answer
152 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 ...
0
votes
1answer
160 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 ...
3
votes
3answers
426 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 ...
0
votes
1answer
175 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 - ...
1
vote
3answers
197 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 ...
5
votes
1answer
1k 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). ...
0
votes
0answers
21 views

mountall isn't running, it seems, and no log, and no clue

As shown below, I have /etc/init.mountall.conf, but /var/log/upstart has no mountall.log, and, more to the point, my non-root file system from /etc/fstab does not mount at boot. Mounts fine with mount ...
1
vote
1answer
40 views

upstart script that runs another script, constantly launching

I have an expect script named ex.sh that interacts with another script 'vpn.sh'. the vpn.sh script runs a vpn client so I need Upstart to automatically start it when my server reboots. Currently I ...
15
votes
6answers
23k 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. ...
2
votes
1answer
81 views

How does `shutdown -k` disable logins?

This is the -k option's documentation in man shutdown (at least on Ubuntu): -k Only send out the warning messages and disable logins, do not actually bring the system down. I initially ...
5
votes
1answer
2k 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, ...
2
votes
1answer
2k views

Upstart documentation for CentOS 6

I am currently migrating from CentOS 5.5 to 6.4. Having fun converting /etc/inittab stuff to upstart. Ran into a lot of little problems but am getting the hang of it now. The best documentation ...
2
votes
0answers
294 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 ...
1
vote
1answer
527 views

Daemon - how to tell the start daemon to execute this daemon as different username then root?

I have this startup script, when i launch i have the execution done by username: root, instead of username: sun. How can i tell the start_daemon to execute it as username : sun not root? $ ps aux | ...
1
vote
1answer
1k views

Make screen start as Daemon for a Minecraft server

I made a script that runs fine manually, but can't get it to run with the description in How to start a script file on boot?. I have run update-rc.d -f minecraft.start defaults This is what my ...
1
vote
0answers
97 views

How to determine which init system is used? [duplicate]

Is there a way to determine which init system is being used in Linux? (such as sysvinit, upstart, systemd, etc.) I don't care if it can be programmatically determined, I just want to know how I can ...
0
votes
0answers
36 views

Bash script to identify which init system the system currently using [duplicate]

I have to create a script that will mount my /usr folder as aufs. I compressed it using squashfs. I've managed to install a working systemd init in ubuntu which I am currently using. Because the ...
7
votes
0answers
698 views

Solaris SMF vs Linux Upstart [closed]

I'm in the process of learning Upstart after first having learned SMF. Naturally I'm assuming that they fulfill the same purpose but I'm aware that this is where I'm wrong. Ideally I was hoping ...
1
vote
1answer
184 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 ...
2
votes
2answers
981 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 ...
0
votes
0answers
123 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 ...
62
votes
4answers
26k views

What are the pros/cons of Upstart and systemd?

It appears systemd is the hot new init system on the block, same as Upstart was a few years ago. What are the pros/cons for each? Also, how does each compare to other init systems?
2
votes
1answer
1k views

service to start on boot doesn't work with update-rc.d comand

I have installed redis server on my ubuntu based server, so I can start/stop/restart redis server, the redis_server.sh is already in the /etc/init.d. Now I want to make redis start on boot, I ...
4
votes
2answers
219 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 ...
3
votes
1answer
499 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
225 views

How to disable a daemon process on RHEL 6.3 like SMF does on Solaris

This problem has been bugging me for a while, we have a program running on Solaris, which managed as a service well by SMF, can be enabled/disabled very easily. Now, according to our market, we would ...
3
votes
0answers
139 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 ...