Active Topics

 


Reply
Thread Tools
int_ua's Avatar
Posts: 676 | Thanked: 1,067 times | Joined on Jul 2010 @ Kyiv, Ukraine
#1
Code:
echo "manual" > /etc/init/JOB.override
doesn't work.
Code:
echo "manual" > /etc/event.d/JOB.override
doesn't work.
Code:
echo "manual" >> /etc/event.d/JOB
doesn't work.
Code:
update-rc.d JOB remove
doesn't work.

Any way to disable something without editing or removing files from another package?

Do I really have to replace start on with sed from postinst script?

Last edited by int_ua; 2013-10-06 at 08:15.
 
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#2
Upstart scripts can be hard work, I am playing with one at the moment.

I am not certain what you are trying to do but...

All upstart scripts are run with "set -e" so if any line has an exit status != 0 the script will fail. Also everything is run as root unless you tell it.

http://upstart.ubuntu.com/cookbook/#...s-using-bin-sh

I found testing scripts with "set -ex" helps to debug any weird issues.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following 2 Users Say Thank You to sixwheeledbeast For This Useful Post:
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#3
Originally Posted by int_ua
Code:
echo "manual" > /etc/init/JOB.override
doesn't work.
In Maemo the upstart scripts are in /etc/event.d. Thus in theory writing "manual" to /etc/event.d/JOB.override should work, but it might be that Maemo's upstart doesn't work that way.

(If you do try this, please report if it worked!)

In one of my N900s I made a "disabled" directory under event.d, to which I moved services I wanted to disable. Today while I was investigating a different issue I realized that upstart is so "smart" that it also looks in subdirectories of event.d, so my "disabled" services where actually being handled.

The best and safest way is simply to get the file out of the way (where upstart won't find it..).
 

The Following User Says Thank You to reinob For This Useful Post:
qwazix's Avatar
Moderator | Posts: 2,622 | Thanked: 5,447 times | Joined on Jan 2010
#4
IIRC this .override thingie was introduced in upstart some time after maemo's version but I am not sure.
__________________
Proud coding competition 2012 winner: ρcam
My other apps: speedcrunch N9 N900 Jolla –– contactlaunch –– timenow

Nemo UX blog: Grog
My website: qwazix.com
My job: oob
 

The Following 4 Users Say Thank You to qwazix For This Useful Post:
int_ua's Avatar
Posts: 676 | Thanked: 1,067 times | Joined on Jul 2010 @ Kyiv, Ukraine
#5
Originally Posted by reinob View Post
writing "manual" to /etc/event.d/JOB.override should work, but it might be that Maemo's upstart doesn't work that way.
And it doesn't work.
Originally Posted by reinob View Post
The best and safest way is simply to get the file out of the way (where upstart won't find it..).
I still want to control daemons, so I think removing "start on" is better.

What is /etc/event.replace.d ?
Update: Answer:
http://talk.maemo.org/showthread.php?t=87959
http://mg.pov.lt/maemo-irclog/%23mae...11-21.log.html

http://wiki.maemo.org/Maemo_5_boot_process

Last edited by int_ua; 2013-10-06 at 13:24.
 

The Following 2 Users Say Thank You to int_ua For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 05:02.