Author Topic: Where/how to insert a start-up script  (Read 625 times)

Offline alansecker

  • PCLinuxOS Tester
  • Full Member
  • *******
  • Posts: 59
Where/how to insert a start-up script
« on: February 17, 2012, 10:37:58 AM »
I want to start up the NO-IP DDNS client file script. The instructions say to set it in /etc/init.d/rcX.d.
X resolves to five but I do not have rc-anything in my system under init.d. The only rc5.d I have is directly under /etc. What's more every script starts with a prefix and number. What should I do to ensure execution?

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3982
Re: Where/how to insert a start-up script
« Reply #2 on: February 17, 2012, 12:57:56 PM »
In pclos /etc/init.d/ is a symbolic link to /etc/rc.d/init.d/ is where the scripts live, and /etc/rcx.d/ is a symbolic link to /etc/rc.d/rcx.d/ where the links for every script in the applicable  runlevel live. The links for the scripts are generated by chkconfig based on the content of the script. If the script you have was not written for pclos it is not possible to install it reliably in pclos, because pclos has a second (and preferred) method for organising script execution on boot, to reduce boot time. Packagers adjust these scripts when packaging the application to ensure they will run as they should.

There are dynamic dns programs in the repo and you should install and set up one of those rather than trying to install one from outside the repo.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf