AEM centos 7 init script system.d | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kautuk_sahni

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

3 replies

kautuk_sahni
Employee
February 2, 2016

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
varshsr
varshsrAuthor
New Participant
February 2, 2016

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 ?

kautuk_sahni
kautuk_sahniAccepted solution
Employee
February 2, 2016

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