Sur Redhat 7.1 (Fonctionne sur Vldtb01p)
Les scripts lancés au démarrage sont dans le fichier /etc/rc.local Ce fichier doit être exécutable
ll /etc/rc.local
chmod +x /etc/rc.local
lrwxrwxrwx. 1 root root 13 Sep 22 16:11 /etc/rc.local -> rc.d/rc.local
Exemple :
[root@vldtb02x ~]# cat /etc/rc.local #!/bin/bash # THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES # # It is highly advisable to create own systemd services or udev rules # to run scripts during boot instead of using this file. # # In contrast to previous versions due to parallel execution during boot # this script will NOT be run after all other services. # # Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure # that this script will be executed during boot.
# touch /var/lock/subsys/local
echo Start Vtom Agent . /etc/init.d/boot_start_vtom.sh
echo Start Oracle . /etc/init.d/start_oracle.sh
echo Zabbix Agent . /etc/init.d/zabbix_agent_start.sh
echo su -l ora112 -c /exploit/scripts/start_oracle.sh> /etc/init.d/start_oracle.sh