Thank you.
I created the /etc/init.d/noip with below content. Made the script executable.
Code: Select all
#! /bin/sh
# /etc/init.d/noip
# If you want a command to always run, put it here
# Carry out specific functions when asked to by the system
case "$1" in
start)
echo "Starting noip"
# run application you want to start
/usr/local/bin/noip2
;;
stop)
echo "Stopping noip"
# kill application you want to stop
killall noip2
;;
*)
echo "Usage: /etc/init.d/noip {start|stop}"
exit 1
;;
esac
exit 0
When I did,
Code: Select all
sudo update-rc.d NameOfYourScript defaults
I got below errors,
Code: Select all
pi@raspisimon ~ $ sudo update-rc.d noip defaults
update-rc.d: using dependency based boot sequencing
insserv: warning: script 'noip' missing LSB tags and overrides
insserv: script ups-monitor: service ups-monitor already provided!
insserv: There is a loop between service minidlna and noip if stopped
insserv: loop involving service noip at depth 2
insserv: loop involving service minidlna at depth 1
insserv: Stopping noip depends on minidlna and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
And after reboot noip did not come up too. How to fix it?
I tried adding my command to start noip (sudo noip2) to /etc/rc.local and then rebooted the system. This time noip started automatically.
Is noip starting after I login to machine or it starts when system reboots and before I login?