Expand my Community achievements bar.

SOLVED

AEM centos 7 init script system.d

Avatar

Level 5

Is there any reference to AEM centos 7 init script based system.d rather init.d

Similar to the one https://helpx.adobe.com/experience-manager/kb/linux-init-script.html

Can this be updated for system.d ?

1 Accepted Solution

Avatar

Correct answer by
Administrator

Hi 

I am not working in Centos, but i have found an article which might help you.

Run a script at Boot time in Centos7

Link:- https://gopukrish.wordpress.com/2015/04/03/run-a-script-at-boot-time-in-centos-7/

By default /etc/rc.local and /etc/rc.d/rc.local are no longer executable in CentOS7 with the new systemd-changes. Follow the below steps to make the script /root/g.sh run at boot time:

1. chmod +x /etc/rc.d/rc.local2. chmod +x /root/g.sh 2. Mention your script at the bottom of the file /etc/rc.local (/etc/rc.local is a symlink to /etc/rc.d/rc.local)as below : sh /root/g.sh

And in shell file you can start AEM instance.

 

Some more reference articles :- http://unix.stackexchange.com/questions/47695/how-to-write-startup-script-for-systemd

I hope this would help you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

View solution in original post

3 Replies

Avatar

Correct answer by
Administrator

Hi 

I am not working in Centos, but i have found an article which might help you.

Run a script at Boot time in Centos7

Link:- https://gopukrish.wordpress.com/2015/04/03/run-a-script-at-boot-time-in-centos-7/

By default /etc/rc.local and /etc/rc.d/rc.local are no longer executable in CentOS7 with the new systemd-changes. Follow the below steps to make the script /root/g.sh run at boot time:

1. chmod +x /etc/rc.d/rc.local2. chmod +x /root/g.sh 2. Mention your script at the bottom of the file /etc/rc.local (/etc/rc.local is a symlink to /etc/rc.d/rc.local)as below : sh /root/g.sh

And in shell file you can start AEM instance.

 

Some more reference articles :- http://unix.stackexchange.com/questions/47695/how-to-write-startup-script-for-systemd

I hope this would help you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Level 5

Thanks for the details 

is there a possibility to have similar  https://helpx.adobe.com/experience-manager/kb/linux-init-script.html

for centos 7 with systemd ?

Avatar

Administrator

sri003 wrote...

Thanks for the details 

is there a possibility to have similar  https://helpx.adobe.com/experience-manager/kb/linux-init-script.html

for centos 7 with systemd ?

 

Certainly this could be done if many customers are facing this issue. But currently to write Knowledge base article for this would be low in priority. I will still convey this message to concerned team if they can do this.

In meanwhile you can stick to the above stated workaround.

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni