User avatar
grynnan
Posts: 15
Joined: Mon May 14, 2012 3:53 pm
Contact: ICQ Website

update-rc.d script defaults

Tue Jul 31, 2012 3:20 am

Code: Select all

$sudo update-rc.d script defaults
update-rc.d: using dependency based boot sequencing
update-rc.d: error: unable to read /etc/init.d/script
Doh!
Hard to read anything that doesn't exist. Where did script go? =P

Was trying to K some services out, but I think I wait.
Is it debian, or raspian that has an unstable update-rc? Can't remember seeing this last line in debian:

Code: Select all

sudo update-rc.d
update-rc.d: using dependency based boot sequencing
update-rc.d: error: not enough arguments
usage: update-rc.d [-n] [-f] <basename> remove
       update-rc.d [-n] <basename> defaults [NN | SS KK]
       update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] .
       update-rc.d [-n] <basename> disable|enable [S|2|3|4|5]
		-n: not really
		-f: force

The disable|enable API is not stable and might change in the future.
The disable|enable API is not stable and might change in the future.

User avatar
jojopi
Posts: 3271
Joined: Tue Oct 11, 2011 8:38 pm

Re: update-rc.d script defaults

Tue Jul 31, 2012 3:58 am

If "script" is the name of a real init script, what does it do? Have you installed all the packages associated with doing that thing?

To me, "script" sounds more like a meta-syntactic name for a script. As though you are following instructions that suggested "update-rc.d script defaults", but you were supposed to change the word "script" to the name of the script you wanted.

User avatar
grynnan
Posts: 15
Joined: Mon May 14, 2012 3:53 pm
Contact: ICQ Website

Re: update-rc.d script defaults

Tue Jul 31, 2012 1:22 pm

doh.. so need my coffee... thx lol

ylafont
Posts: 16
Joined: Wed Sep 26, 2012 1:13 am

Re: update-rc.d script defaults

Fri Feb 06, 2015 3:50 pm

Forgive me, I think i also needed my cup of coffee this morning. I copied the incorrect portion of my screen.

here is the correct one.

Code: Select all

pi@PiScanner /etc/init.d $ sudo update-rc.d scanbd defaults
update-rc.d: using dependency based boot sequencing
pi@PiScanner /etc/init.d $
It is at startup script for scanbd - http://scanbd.sourceforge.net/ which uses sane and monitors scanner buttons.

The app is installed and I can start it manually.

I get nothing in syslog or message log stating the script was executed.

Return to “Raspberry Pi OS”