Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-29-2016, 02:41 PM   #1
LQ Newbie
Registered: Nov 2014
Posts: 12

Rep: Reputation: Disabled
How to start noip2 on startup on Ubuntu 16.10 server

Hi all!
I have noip2 client installed on my server with Ubuntu 16.10 but how can i make so that the noip2 client is starting on the computer startup?
What i can understand so is it not possible anymore to put a simple commando like "/usr/local/bin/noip2" in /etc/rc.d/rc.local?
Old 12-29-2016, 05:25 PM   #2
Senior Member
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
What really works good is an LSB init script in /etc/init.d/. You can get it just right with the help of insserv, an application that shows everything that gets initiated during bootup and in what sequence. It really helps figure out when exactly your startup script should be initiated, which would be somewhere around networking.
This article is a good place to start getting familiar with LSB scripting.
I will edit this post later to post one I fabricated 5 years ago in the networking area with the help of insserv, at least one can get a sample header that works. But it is strongly recommended to use insserv to get a good grasp on how your system comes up.
EDIT:I came to remember the application used to view boot sequence is graphviz, insserv is a requirement. It was 5-6 years ago I played with this, so currently I don't remember how to use it but I did learn from Google so it shouldn't be hard to figure it out.
Below is an LSB compliant script I designed for a Debian live system that would scan for wireless devices during bootup, it would refer to lists of pcid I had stored in /root, and if a chip was detected for a device that needed building a driver or removing modules and adding others etc., it would all take place during bootup and the device was enabled when the desktop arrived.
# Provides:          wallawalla1-baby
# Required-Start:    mountdevsubfs 
# Required-Stop:      
# Should-Start:      networking
# Default-Start:     2 3 4 5
# Default-Stop:      1 0 6
# Short-Description: Configure network devices

if lspci -n | grep -qi -f /root/bcm4321 > /dev/null ; then
	rm /lib/modules/2.6.38-2-686/kernel/net/wireless/lib80211_crypt_tkip.ko
	modprobe -r b44 b43 b43legacy ssb brcm80211 wl lib80211_crypt_tkip
	modprobe wl

if lspci -n | grep -qi -f /root/ath9 > /dev/null ; then
	modprobe -r ar9170usb ath9k zd1211rw ath5k
	modprobe ath9k

if lspci -n | grep -qi -f /root/ath5 > /dev/null ; then
	modprobe -r ar9170usb ath5k zd1211rw ath9k
	modprobe ath5k

if lspci -n | grep -qi -f /root/sky2 > /dev/null ; then
	modprobe sky2

if lspci -n | grep -qi -f /root/rtl819 > /dev/null ; then
        cd /root/rtl8192se
	make install
	modprobe r8192se_pci
	cd ..

cp /media/VAULT/asound.state /var/lib/alsa/

Last edited by Brains; 12-29-2016 at 05:50 PM.
Old 12-29-2016, 05:39 PM   #3
Registered: Aug 2002
Posts: 25,491

Rep: Reputation: 5841Reputation: 5841Reputation: 5841Reputation: 5841Reputation: 5841Reputation: 5841Reputation: 5841Reputation: 5841Reputation: 5841Reputation: 5841Reputation: 5841
I believe that there is systemd rc.local service. You need to enable the service and change the permissions for the /etc/rc.local file to be executable.

systemctl enable rc-local.service


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot find the server at error after restart new Ubuntu Install Libellula Linux - Newbie 1 03-26-2013 07:46 PM
how to start mysql server & apache server at startup and then tomcat at last at boot sanjay87 Linux - Server 5 06-16-2012 09:19 AM
[SOLVED] Squid failing startup on Ubuntu 10.10 server ssouter Ubuntu 3 11-03-2010 07:24 PM
Run An sh File on startup in ubuntu server 9.10 Jamie Kugelmann Linux - General 3 05-15-2009 02:24 AM
Start noip2 process at boot up kt8993 Mandriva 1 05-06-2005 11:47 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration