we have installed some tool on RedHat linux 8.5 which comes with a README file that explains steps we should do, in order to enable automatic startup:
- Copy the 'accurev' script to the /etc/rc.d/init.d/
cp /opt/accurev/extras/unix/accurev /etc/rc.d/init.d/
make links as follows
ln -s /etc/rc.d/init.d/accurev /etc/rc.d/rc0.d/K35accurev
ln -s /etc/rc.d/init.d/accurev /etc/rc.d/rc1.d/K35accurev
ln -s /etc/rc.d/init.d/accurev /etc/rc.d/rc2.d/S77accurev
ln -s /etc/rc.d/init.d/accurev /etc/rc.d/rc3.d/S77accurev
ln -s /etc/rc.d/init.d/accurev /etc/rc.d/rc5.d/S77accurev
ln -s /etc/rc.d/init.d/accurev /etc/rc.d/rc6.d/K35accurev
README file does not contain any further instructions.
Since this is a production server I cannot test this properly, unfortunately.
Will this be enough to have the script started upon the reboot?
I was searching the similar topics like How can I make a script in /etc/init.d start at boot? and they mention the chkconfig
tool which this README instruction does not mention, so I just wanted to be sure if I covered all the steps.
I couldn't find any instruction related to /etc/rc.d
without mentioned chkconfig
tool
Thanks a lot!
ls -l /etc/rc.d/rc5.d
for runlevel 5. The scripts (links to scripts) get executed in the order defined by their name. Ifaccurev
is depending on some other startup item with a higherS
-number, it will fail, – Philippos Jun 22 '22 at 09:09systemd
for startup and rc scripts are certainly legacy. I would be leery of a vendor that is still shipping an rc script, especially one that does not support usingchkconfig add accurev
to automatically create the symlinks. – doneal24 Jun 22 '22 at 12:41