NoIP scripts "missing LSB tabs..." warning + broken scripts

Hello, friends,

I’ve installed squid on my DietPi Wheezie RPI2B, and i’ve seen these warnings (image attached).
dietpi-squid3-warning-noip.png
I installed this morning, too, a fresh DietPi Wheezie image, with SSH, VNC and NoIP (that’s all).

The messages:
insserv: warning: script ‘K01noip2’ missing LSB tags and overrides
inssserv: warning: script ‘noip2’ missing LSB tags and overrides

Have I done something wrong?

I have to say that last week I installed DietPi Wheezie on my first RPI, a 1 B 512 MB RAM and everything worked like a charm. Yesterday I tried to install DietPi Jessie on my recently bought RPI 2 B, and I couldn’t go into xxxxx.ddns.org from “the outside” correctly: it just worked for 5 minutes, and I had to reboot the RPI2B calling to my wife, then again it (noIP) worked for 5 minutes, and then another phone calling! For this reason, this morning I went back Wheezie and, although NoIP seems to work perfectly (now SSH connected and with no need to phone call to home), I’ve got these messages.

Thank you very much for your help,
Oscar

There’s a post that says the (supposed) solution: Linux - [solucionado] insserv: warning: script 'noip2' missing LSB tags and overrides

It says adding on /etc/init.d/noip2 these lines on the beginning of the file:

In the DietPi /etc/init.d/noip2 we have:

Captura de pantalla 2015-12-02 a las 12.13.22.png

The rest of the file is the same.

Do I do this? I’m newbie on Linux Servers and I don’t want to mess with it up!

Thanks,

Hi Skyfly555,

We pulled the noip service file from the noip website.

Yep this should be fine, the only changes I’ve made are added dietpi-service and moved $syslog to “should”. Syslog is not installed on DietPi systems unless you use “full logging mode”.

/etc/init.d/noip2

#! /bin/sh
### BEGIN INIT INFO
# Provides:          noip2
# Required-Start:    $local_fs $remote_fs $network dietpi-service
# Should-Start:		 $syslog
# Required-Stop:     $local_fs $remote_fs $network
# Should-Stop:		 $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start/stop noip2
### END INIT INFO

DAEMON=/usr/local/bin/noip2
NAME=noip2

test -x $DAEMON || exit 0

case "$1" in
    start)
    echo -n "Starting dynamic address update: "
    start-stop-daemon --start --exec $DAEMON
    echo "noip2."
    ;;
    stop)
    echo -n "Shutting down dynamic address update:"
    start-stop-daemon --stop --oknodo --retry 30 --exec $DAEMON
    echo "noip2."
    ;;

    restart)
    echo -n "Restarting dynamic address update: "
    start-stop-daemon --stop --oknodo --retry 30 --exec $DAEMON
    start-stop-daemon --start --exec $DAEMON
    echo "noip2."
    ;;

    *)
    echo "Usage: $0 {start|stop|restart}"
    exit 1
esac
exit 0

Update-rc.d

chmod +x /etc/init.d/noip2
update-rc.d noip2 defaults
#Disable services so DietPi-services can take control (DietPi will start all services from rc.local during boot)
/DietPi/dietpi/dietpi-services disable

Thank you very much, Fourdee.

Just to be sure I understand:

  1. I have to modify /etc/init.d/noip2 with your code (I’ve done this).
  2. I have to write into the terminal the commands you have written into Update-rc.d, the 4 lines (I’ve done this, but not sure if this is correct) → I want to say: the “update-rc.d” code is not any file to be modified as I did on step 1?? Are they just lines to be executed into the terminal (in my case, ssh window on my Mac?

Thanks again,

Hello,

I’m installing new things just to get a proxy-firewall working on my RPI2B.

Now, installing a DHCP Server (apt-get install isc-dhcp-server), I’ve got more error messages (image attached):


I suppose this is related to the changing of headers we have done before on the file “/etc/init.d/noip2” because the “INIT SECTION” in the file /etc/init.d/noip2.save.1 seems a little messy (image attached):

So, what do I have to do? Taking the “init section” of the file /etc/init.d/noip2 and copy it “as it is” to the files /etc/init.d/noip2.save.1 and /etc/init.d/noip2.save.2?

Note: The file /etc/init.d/noip2.save.2 seems not to be so messy, but neither in a good condition (image attached):


Thank you,

Looks like a formatting issue when you pasted into the terminal. Try clicking “select all” in the code box, copy, then paste directly into the terminal.

Lets download the updated NoIp service from DietPi v102:

wget https://raw.githubusercontent.com/Fourdee/DietPi/testing/dietpi/conf/noip_init -O /etc/init.d/noip2

Then do the following:

chmod +x /etc/init.d/noip2
update-rc.d noip2 defaults
#Disable services so DietPi-services can take control (DietPi will start all services from rc.local during boot)
/DietPi/dietpi/dietpi-services disable

Thank you very much, Fourdee.

I will make a fresh v102 install, And I will begin again, I’m having some troubles with IceWeasel, when I try to init it, RPI hangs, and maybe it’s SD corrupted (yesterday, a little girl disconnected two times the RPI while working on it).

I’ll say if everything’s ok doing this :slight_smile:)

Hehe, my 1.5yr year old son also loves usb cables :slight_smile:

Hopefully the card isnt damaged beyond repair.
It may be worth formatting the sd card using a full overwrite (to set all cells to 0) and format adjust on: SD Memory Card Formatter for Windows/Mac | SD Association I’ve brought a few corrupt/faulty SD cards back this way.

Thank you for the trick about formatting SD cads, I’m really using SDformatter yet, but all the time simply using “quick format” instead of “Overwrite Format”. Nice to know this.