Trouble using update-rc.d

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
SlashWannabe94

Trouble using update-rc.d

Post by SlashWannabe94 »

Hello everyone,

Basically my problem is that when i run the command below i receive the following error.

virtual@linuxmint-virtual /etc/init.d $ sudo update-rc.d conky.sh defaults
update-rc.d: using dependency based boot sequencing
insserv: warning: script 'conky.sh' missing LSB tags and overrides

Can anyone help me with this, i have tried numerous sites with no luck.

Thanks,
SlashWannabe94
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
viking777

Re: Trouble using update-rc.d

Post by viking777 »

The manpage of update-rc.d states
"Please note that this program was designed for use in package maintainer scripts and accordingly, has only the very limited functionality required by such scripts. System administrators are not encouraged to use update-rc.d to manage runlevels. They should edit the links directly or use runlevel editors such as sysv-rc-conf and bum instead."

So if that is what you are trying to do then you shouldn't be. Use sysv-rc-conf (which you will probably have to install) run as root. OTOH if conky.sh is a package maintainer script then I guess it is not written correctly to work with update-rc.d. In which case I am not sure what you do. Find another script?
It might help if we knew what you are trying to achieve with this script, maybe there is an easier way to do whatever you want.
SlashWannabe94

Re: Trouble using update-rc.d

Post by SlashWannabe94 »

Basically i'm trying to start conky on boot. This works in ubuntu using

Code: Select all

update-rc.d script.sh defaults
.
Lostwithaclue

Re: Trouble using update-rc.d

Post by Lostwithaclue »

viking777

Re: Trouble using update-rc.d

Post by viking777 »

SlashWannabe94 wrote:Basically i'm trying to start conky on boot.
Copy this into a file named conky.desktop and save it in ~/.config/autostart:

Code: Select all

[Desktop Entry]
Type=Application
Exec=conky
Hidden=false
X-GNOME-Autostart-enabled=true
Name[en_GB]=Conky
Name=Conky
Comment[en_GB]=
Comment=
SlashWannabe94

Re: Trouble using update-rc.d

Post by SlashWannabe94 »

I don't think that will work dude. Im running XFCE4. It's strange because i have now tried to remove conky by removing it with

Code: Select all

sudo apt-get remove --purge conky
, removing the startup script i made in /etc/init.d and

Code: Select all

sudo rm K01conky.sh
. I am having no luck here. So much seems to be happening.
before i ran the above commands it would start conky on boot along with a fresh terminal and session and startup, which was more than i bargained for. Not liking Linux Mint at all... Seems buggy. Could just be me though.

Any suggestions guys?

Thanks,

yours sincerely, Linux Mint n00b.
Locked

Return to “Software & Applications”