0
votes
2answers
52 views

upstart multiple parameters

So Im working on a upstart process and wanted to know if I could pass in multiple parameters my-upstart-service restart PARM1=foo PARM2=bar PARM3=hello Here is kinda what I had in mind description ...
1
vote
2answers
69 views

Which init daemon starts cups?

I have a fresh installation of Ubuntu 14.04, and have not touched anything. Cups is running, as reported by both ps and netstat. There are /etc/init/cups.conf and /etc/init.d/cups, both of them seem ...
-1
votes
1answer
33 views

Are there any plans to simplify console service management on Ubuntu?

I am quite perplexed about the direction in which service management is going on Ubuntu and the funny part is that the same seems to be happening with OS X but that's another story. I do appreciate ...
0
votes
1answer
62 views

Which arguments are passed to init scripts during shutdown

I am currently looking at the startup and shutdown procedures for ubunut precise pangolin. As far as I understand at shutdown the system switches to runlevel 0 and all scripts with K* are executed ...
1
vote
2answers
145 views

What's the best way to make a Qt executable program run as a service in Ubuntu

I've written my Qt code for an embedded system which is running on Ubuntu. I want to run my program as a service in Ubuntu so I can stop or start it using monit. I've seen some people creating a new ...
1
vote
0answers
32 views

log files prevent clean root umount

My root fs is always dirty after shutdown. To see why, I added a couple of lines into /etc/init.d/umountroot: /usr/bin/lsof / | /usr/bin/awk '$4 ~ /[0-9].*w/' ... mount -o remount,ro ... /bin/bash ...
0
votes
1answer
347 views

initclt not seeing init script in Ubuntu 12 64bit

I created an init script in LSB format, and copied it to the /etc/init.d directory. I can manually start, stop, status the service and all works fine. I then try to set the service to auto stop/start ...
0
votes
1answer
270 views

An alternative to init.d?

Is there an alternative to Ubuntu's init.d? Like a way of starting and stopping daemons that don't require those monstrous init.d scripts: # cat /etc/init.d/skeleton #! /bin/sh ### BEGIN INIT INFO # ...
1
vote
0answers
187 views

UPSTART services all hang when stopping (stop/waiting)

I am using Ubuntu 13.10 After an IPL, there are many run once services that hang, they are all in STOP/WAITING status. Also, if I try to stop any normal service like apache2, mysql, vsftp I get the ...
1
vote
0answers
370 views

Changing a start up init.d script to use with new ubuntu

This is my code. I would like to change it to use with new versions of ubuntu. The thing is ubuntu doesn't have chkconfig any more. Also I heard that new ubuntu uses upstart instead of init type start ...
0
votes
1answer
223 views

Init.d script problem

The init.d script is installed properly and by me i wrote the script correctly. But i have a very strange situation. The script executes a multi-threaded program written in c++ by me. If i execute the ...
20
votes
4answers
35k views

How to install an init.d script in ubuntu?

I am trying to install an init.d script, to run celery for scheduling tasks. Here is the steps I followed: copied the file celeryd and pasted it in folder /etc/init.d/ created a configuration file ...
1
vote
1answer
186 views

Am I using upstart correctly?

I'm trying to write a startup script for my Ubuntu 12.04 desktop that pings my Netgear router every 30 seconds (this is necessary as a nasty workaround for a separate problem I'm having). I read this ...
3
votes
0answers
312 views

Shutdown slow: unknown job s35networking [closed]

Since I've upgraded to Ubuntu 13.04 from 12.04 LTS, I get this error when I shutdown the pc: rather than invoking init scripts through /etc/init.d, use the service(8) utility service S35 ...
1
vote
1answer
174 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
142 views

Is $RUN a built in command to execute?

I have a .sh script that starts a java service of mine (I didn't write this). Can someone explain how this actually executes? start() { .. .. # setup classpath . $ROOT/bin/_cp.sh ...
3
votes
1answer
305 views

Simplest way to make a command run after system reboot

I have a server which exists to run one little Django application. If the server reboots, I want Django to start again: nohup /opt/myapp/manage.py runserver ... I'm having trouble finding a simple ...
3
votes
2answers
1k views

How to move over from init.d to upstart for nginx

I have an init.d script for nginx that normally works fine. However, after a reboot it doesn't work properly and the worker process would die leaving just the master process. nginx has some mongodb ...
1
vote
1answer
1k views

What is the current state of Ubuntu's transition from init scripts to Upstart?

What is the current state of Ubuntu's transition from init.d scripts to upstart? I was curious, so I compared the contents of /etc/init.d/ to /etc/init/ on one of our development machines, which is ...
0
votes
1answer
291 views

Apache doesnt start after upgrade to 12.10

during the upgrade process I was wondered for "replace init.d", and I said "keep", not replace. Now, apache2 is not working. I tried removing and upgrading again, but doesnt start. I have this error ...
0
votes
1answer
1k views

Boot order of MySQL

I have a conflict with two programs in Ubuntu 10.04. I have configured an init.d file that boots up a program. However, this program requires MySQL to be running before it starts. When I boot the ...
0
votes
1answer
3k views

vncserver in rc.local will not run at boot

I'm using /etc/rc.local and here is the current contents: Okay, for some reason the formatting here isn't making a codeblock and instead is making everything bold and 3x the size. Those who are able, ...
0
votes
1answer
549 views

Alternative way to start mysql server other than upstart?

I have a chrooted 10.04 LTS installation on a NAS, it works great but breaks Upstart very badly. MySQL only works via Upstart these days, so I created a workaround to start like this: dtach -n ...
1
vote
1answer
588 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 ...
1
vote
1answer
857 views

Managing dependency across Upstart and SysV-style init.d script

I have an Upstart job that must run before a SysV-style init.d script runs. The init.d script is configured to be started in the runlevels 2, 3, 4 and 5 with priority 20. What can I do to have the ...
0
votes
1answer
677 views

Upstart Jobs and init.d scripts not launching

I'm working on an Ubuntu based browser distro that is meant to be ran live. Part of the security solution is to use sdmem when it shuts down. sdmem wipes the available ram and is found in the ...
1
vote
1answer
2k 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 ...
1
vote
2answers
763 views

Where do I put my start up script for mysql?

I have created a second instance of MySQL on the server for replication, if I start the process manually it works but need it to start at bootup. I used to just do a bash script in the init.d folder ...
11
votes
2answers
7k views

How do I set up a service?

I have a script that I would like to run as a service on my Ubuntu Server 11.04 headless box. That is, I want to have the correct files under /etc/init.d/ and to be able to control it via the service ...
21
votes
2answers
94k views

How to start and stop a service? [duplicate]

Possible Duplicate: What’s the recommended way to enable / disable services? Are there any other command to start stop restart service in ubuntu other than the below following. service ...
3
votes
1answer
335 views

Is init.d “safe” enough to use or should i use `runit` or `daemontools` on a server

I am looking to deploy my application on a server on which I would have no access in the future. I would like to have an indication of start-up errors generated by my program in particular and the ...