missing LSB tags and overrides

panosru

Verified User
Joined
Oct 8, 2006
Messages
80
Location
Greece
Hello, how can I get rid if this message? should I add manually all the tags into my init.d scripts?

I saw here that the solution is this but I'm not sure if it safe to remove insserv as I'm getting warned from the system when I try to run apt-get remove insserv

Thanks
 

SeLLeRoNe

Super Moderator
Joined
Oct 9, 2004
Messages
6,789
Location
A Coruña, Spain
Well is a warning nothing more.

Actually i dont know what insserv do, you should search on google for check that. If DA Staff has wrote in the help to remove probably means is not a mandatory/very important service.

Regards
 

panosru

Verified User
Joined
Oct 8, 2006
Messages
80
Location
Greece
Hello!

Thank you for your reply, I asked mostly because of this (You are about to do something potentially harmful.):

Code:
root@dev:~# apt-get remove insserv
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  file-rc sysvinit
The following packages will be REMOVED:
  insserv sysv-rc
The following NEW packages will be installed:
  file-rc
The following packages will be upgraded:
  sysvinit
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  sysv-rc (due to sysvinit)
1 upgraded, 1 newly installed, 2 to remove and 293 not upgraded.
Need to get 162 kB of archives.
After this operation, 522 kB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?]
:) And since the particular suggestion in DA knowledge base is Last Modified: Jun 8, 2011 I just want to make sure that it is still valid and I can proceed in removing insserv without harming my system :)
 

SeLLeRoNe

Super Moderator
Joined
Oct 9, 2004
Messages
6,789
Location
A Coruña, Spain
Im not a debian expert so im not sure. im supposing apt is replacing sysv-rc with sysvinit (that i suppose should do same job in a different way) and that should be ok (actually me not, but apt know what is doing :) )

But, for be sure you should try to email DA Staff for a confirmation of what im thinking or wait that someone else with more debian skills will reply.

Regards
 

Eric

Verified User
Joined
Mar 25, 2004
Messages
116
I modified mine. The file is located at /etc/init.d/directadmin
Here you go:

#!/bin/sh

### BEGIN INIT INFO
# Provides: directadmin
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop directadmin
# Description: DirectAdmin
### END INIT INFO
 

Marwen

Verified User
Joined
Nov 7, 2003
Messages
144
Location
germany
Don´t forget to make from console

update-rc.d directadmin defaults

After this the update-rc.d write the /etc/init.d/directadmin into the runlevels

You can do this for mysqld, dovecot, startips aso also by enter:

### BEGIN INIT INFO
# Provides: directadmin <-- insert here the right service (mysqld for mysql )
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and Stop
# Description:
### END INIT INFO

This into your init scripts in /etc/init.d

after insert run again

update-rc.d "the service" defaults

Mario
 

chanab44

New member
Joined
Aug 24, 2013
Messages
2
This is a big error and can not stop when this is happen .



--------------
chanab44
 
Top