Tagged Questions
0
votes
0answers
38 views
ubuntu desktop 12.04 networking does not work on boot until I run sudo service networking restart
The problem is that every time I boot I have to run sudo service networking restart every time I boot in order to get it working. After that everything works fine.
Any ideas how I can solve this ...
1
vote
1answer
46 views
Upstart job fails to respawn and hangs when tried to stop/restart it
I'm using Upstart 1.5 in Ubuntu 12.04 to manage a process created by some user but needs to be managed as system job as starting on boot, respawning if it fails and we been able to start/stop it at ...
1
vote
1answer
63 views
Where is Unity startup script in rc?.d
I've been reading about runlevels and startup scripts lately, and I've learnt that runlevels 2 to 5 are the same in Ubuntu, and that Ubuntu's default runlevel is 2.
What I want to do
I want to ...
1
vote
1answer
42 views
Start and stop parameters in init script
I have .conf a file in /etc/init/ with this code at the bottom:
start on (started network-interface
or started network-manager
or started networking)
stop on (stopping ...
0
votes
1answer
32 views
Upstart with a script that start and finish their own processes
I'm trying to setup in Upstart a script that launch several internal procs and kill them if is required
$ listener.py -startall
$ listener.py -killall
I can run it with this settings:
# Listener ...
1
vote
0answers
50 views
Why can't we remove bluetooth service the reguler way?
The usual way to remove services from startup scripts is to remove it from starting up in the first place (man update-rc.d). Meaning removing the symbolic link to /lib/init. In this case executing ...
1
vote
1answer
293 views
Console prompt during boot (for truecrypt)
In short: Please provide me with a up-to-date best practice solution to mount my Truecrypt volumes at boot with secure password prompt! I may accept a answer that has nothing to do with Truecrypt and ...
0
votes
1answer
53 views
Redirecting /dev/null to some other device
Is it possible to redirect, ie create /dev/null as non-null device, like /dev/console or /dev/stdout? This obviously has to be done before init runs create creates a standard /dev/null. Upstart seems ...
0
votes
1answer
108 views
X : conditional xorg.conf file during startup
I've got a computer which I use at a couple of different sites, and I've got differen monitors at those sites. What I've done is that I've ceated different xorg.conf files for each of these sites.
...
2
votes
1answer
90 views
Failed to use upstart to control startup dependency
In a server I have memcached and apache2 installed, I want my apache2 ONLY can start if memcached is started, so in my apache upstart script, I added the line
From
start on runlevel [2345]
To
...
0
votes
1answer
53 views
For processes to be up and running all the time
I want my python program sample.py to be always up and running. I have read some things and asked people about ways to do this. So far I have following options -
Upstart
Cron
I am trying things ...
3
votes
1answer
90 views
.override file isn't working
I have a file /etc/init/boinc-client.override with the single line manual that I use to prevent the BOINC client from starting up. (I don't want it hogging CPU time away from Folding@Home, for now ...
0
votes
1answer
197 views
Why my upstart script don't work?
It is strange the script use to work fine,but after the proxy went down for a while,it don't work all the time. But the command in script section can still do it's job,and I have no idea what's going ...
1
vote
2answers
133 views
How do I prevent race conditions in Upstart 'starting on' scripts?
I am working on a package that needs two Upstart jobs: one that launches a daemon, and another that launches a supporting daemon if the configuration file requires it. The logic to determine if the ...
10
votes
2answers
1k views
How do I stop all processes in a chroot?
I have a number of LVM partitions, each containing an Ubuntu installation. Occasionally, I want to do an apt-get dist-upgrade, to update an installation to the most recent packages. I do this with ...
1
vote
1answer
327 views
Customizing upstart “restart” commands
I'd like to run a different command when upstart is restarting a process than when it is starting a process. In particular, I'm using Thin and I want to do a rolling restart (built in to thin via a ...
3
votes
2answers
450 views
starting sshd on first connection to port 22 with upstart's new socket bridge
Recent Upstart has these new fancy systemd-like features of starting jobs on incoming connection via socket-bridge. I'd like to start my sshd upon first connection to port 22.
I now have:
start on ...
3
votes
2answers
3k views
Running commands on boot in 11.10
So I am getting properly confused on how to create a startup script on my Ubuntu 11.10 server. I have read about init-scripts, upstart-jobs and more, but I get even more confused the more I read.
...
1
vote
1answer
1k views
How do I get Upstart to start my Mediatomb service?
I've been struggling, trying to get my Mediatomb server to start automatically on Upstart run level 2. I can't figure it out. I guess Upstart is still new to me and I don't understand it. I even ...
5
votes
2answers
7k views
How to start jenkins?
I installed jenkins via sudo apt-get install jenkins. However, it doesn't start up. Tried to start it manually using sudo /etc/init.d/jenkins start. But it says this message when I try to start it ...
2
votes
1answer
523 views
Upstart scripting: Start service and immediately run another command
Here is my current Upstart script I've placed at /etc/init/redis.conf:
description "redis server"
start on runlevel [2345]
stop on shutdown
exec sudo /opt/redis/redis-server /opt/redis/redis.conf
...
1
vote
0answers
535 views
/dev/mapper/cryptsetup1 is not ready yet or not present, slow system [closed]
Today I had a very high system load because I used many applications at the same time (VirtualBox, totem, firefox,...). The load was so high, that the system almost didn't react anymore. Then I killed ...
2
votes
4answers
2k views
Upstart script for a transmission-daemon executed as a normal user
I have done a script to start transmission-daemon as a normal user:
start on filesystem
stop on runlevel [!2345]
respawn
respawn limit 10 5
pre-start script
test -x /usr/bin/transmission-daemon ...
6
votes
5answers
6k views
Upstart script doesn't start
Ubuntu 10.04
I have created this upstart script (/etc/init/pure-ftpd.conf):
# pure-ftpd - FTP server
description "Pure-FTPd server"
start on filesystem
stop on runlevel S
respawn
respawn limit ...
13
votes
2answers
4k views
How can I make sure one Upstart job starts before other Upstart jobs?
This is a general Upstart question, but let me use a specific case:
Centrify is a NIS to ActiveDirectory gateway. It needs to load before any service that will depend the authentication service that ...
136
votes
6answers
125k views
What's the recommended way to enable / disable services?
I read about how to enable and disable services in Ubuntu and it seems that there are different possibilities to manage them.
The first method I found is update-rc.d to add new services to startup, ...
3
votes
1answer
2k views
How to set up Java-based services for startup?
What's the best way to set up a Java-based program to run an service and start on boot?
upstart (pre-start script and post-stop script ?)
plain old SysV init? (start-stop-daemon ?)
In my case I am ...
3
votes
1answer
343 views
Why does mysql process starts on boot?
As you can see, mysql exists only in the /etc/init.d directory and not in /etc/rcN.d, therefore it shouldn't start on boot.
$ sudo find /etc -regex ".*\(rc.*d\|init\.d\).*" | sudo grep "mysql" | sort
...
3
votes
2answers
2k views
How do I setup gunicorn?
Upstart doesn't like to start gunicorn because it tries to call setpgrp (see github issue), what would be the best way to start [gunicorn] on a 10.04.1 server install? - Ideally with automatic ...
6
votes
4answers
947 views

