Jump to content


Perforce server on Linux CentOS: how to start the process when the operative system starts?

server linux centos chkconfig script init.d automatic start

  • Please log in to reply
3 replies to this topic

#1 Radioga

Radioga

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 09 April 2020 - 10:47 PM

I'm using a old HP Proliant ML110 G5 where I installed CentOS 6.11.
I'm using the p4d server process without any problem, but I would like to start it when the operative system starts so that I have not to start it manually.
I looked for a solution on internet and I read I can use chkconfig to start a script inside the folder /etc/init.d/.
I tried many scripts I found on the internet and I tried to write one by myself, but each of them doesn't work.
Somebody of you could kindly help me to write a script to start p4d process?
Thank you very very very much in advance for every answer you'll give me.

#2 Matt Janulewicz

Matt Janulewicz

    Advanced Member

  • Members
  • PipPipPip
  • 226 posts
  • LocationSan Diego, CA

Posted 10 April 2020 - 08:43 AM

You might want to look into the SDP: https://swarm.worksh...ce-software-sdp

If nothing else, in contains the scripts you need for installing p4d as a service in systemd-based Linux flavors, of which I believe CentOS is:

https://swarm.worksh...x/setup/systemd
-Matt Janulewicz
Currently unemployed, looking for work in Boise, ID!

#3 Radioga

Radioga

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 10 April 2020 - 10:55 AM

View PostMatt Janulewicz, on 10 April 2020 - 08:43 AM, said:

You might want to look into the SDP: https://swarm.worksh...ce-software-sdp

If nothing else, in contains the scripts you need for installing p4d as a service in systemd-based Linux flavors, of which I believe CentOS is:

https://swarm.worksh...x/setup/systemd

Thank you Matt, unfortunately I cannot use systemd in CentOS 6.11, it works only CentOS 7 or greater.

#4 Miles O'Neal

Miles O'Neal

    Advanced Member

  • Members
  • PipPipPip
  • 208 posts
  • LocationAustin. Texas. Y'all.

Posted 13 April 2020 - 04:53 PM

The SDP also contains SysV init scripts such as CentOS6 uses. But if you don't want to use that (I always recommend people use it), you can get away with a bog standard, basic init script. They're stone simple. Let me know if you need an example.





Also tagged with one or more of these keywords: server, linux, centos, chkconfig, script, init.d, automatic start

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users