The tag has no wiki summary.

learn more… | top users | synonyms

60
votes
4answers
24k 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?
18
votes
2answers
8k views

Upstart on Debian?

I created an upstart script in Ubuntu, thinking it would be the same for Debian. But Debian doesn't have a /etc/init folder that Ubuntu has. I went to the upstart download page and seeing that they ...
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. ...
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. ...
7
votes
0answers
554 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 ...
5
votes
2answers
8k 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 ...
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, ...
5
votes
2answers
3k views

Running a bash script as a less privileged user with upstart

This is the script, /home/jack/myscript.sh, which I want to run: export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.26/ /home/jack/myapp/apache-tomcat-6.0.32/bin/./catalina.sh run The upstart file, ...
4
votes
5answers
278 views

How to disable graphical shell?

I have a Linux system (Ubuntu) running in a VM, but now I want to disable the graphical shell. Where in the startup process are the graphical components launched? Is it some run-level dependent ...
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 ...
4
votes
2answers
4k views

What's the status of Upstart on Debian? [closed]

I know that this question has already got asked before, but it's pretty old and things have changed (probably). Already in 2009 the news rumbled, that Debian was going to switch to Upstart. You were ...
4
votes
2answers
212 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
178 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). ...
3
votes
2answers
1k views

Chkconfig on Linux Mint 12 giving tons of errors

I'm trying to disable some services from starting at boot time on my Linux Mint 12 laptop. So I installed chkconfig, which has worked great for me before on Fedora. However, on Linux Mint 12, it gives ...
3
votes
1answer
401 views

How to keep upstart installed-always, don't be replaced by sysvinit?

Each time I do apt-get dist-upgrade, the package sysvinit comes back and replaced upstart. Well, I have some scripts written for upstart, and I need to reinstall it every time (typing the annoying ...
3
votes
3answers
832 views

linux launch script /etc/init with a specific user

I've created a script in /etc/init/mms-agent.conf : start on runlevel [2345] stop on runlevel [06] exec /usr/bin/env python /home/mms/mms-agent/agent.py >> /home/mms/agent.log 2>&1 ...
3
votes
2answers
193 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
2answers
141 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) ...
3
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] ...
3
votes
1answer
350 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
371 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 ...
3
votes
3answers
374 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 ...
3
votes
0answers
112 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 ...
2
votes
2answers
636 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 ...
2
votes
1answer
63 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 ...
2
votes
2answers
132 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
71 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
2answers
40 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 ...
2
votes
0answers
253 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
1answer
75 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 ...
1
vote
2answers
3k views

Changing user in a script?

I am trying to change user in order to execute a specific command during startup. It fails silently and apparently the userchange isn't carried out as I can tell that the command isn't executed. What ...
1
vote
3answers
110 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 ...
1
vote
1answer
959 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 ...
1
vote
2answers
67 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
42 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
1answer
32 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 ...
1
vote
1answer
231 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
837 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
1answer
615 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 ...
1
vote
0answers
91 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 ...
1
vote
2answers
97 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
1answer
134 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 ...
1
vote
1answer
122 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 ...
1
vote
2answers
3k views

Cannot get rc.local to automatically run at all

so I've been trying to get the /etc/rc.local script to run, and for the life of me, nothing seems to work. I can run it manually by using service rc.local start, and it just echos 'hi' to a file in my ...
1
vote
0answers
185 views

Upstart Job as Unprivileged user fails with permission denied

I'm trying to set up a Sage Cell Server (an open source mathematical engine) running as an unprivileged user. I've created the unprivileged user sagecell to do the job. It is installed correctly and, ...
1
vote
0answers
183 views

How to manage 2 vm using upstart?

I use an upstart script to monitor a vm and respawn it when it gets killed. I would like to simulate a failover by doing the following. Create a clone of the VM1 say VM2. When either of them is ...
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 ...
1
vote
0answers
179 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 ...
1
vote
0answers
427 views

How is upstart's socket activation used?

Upstart has gained the ability to start a process after a socket is accessed, but I found the feature to be poorly documented. How is a socket-activated daemon and upstart config written?