I’ve installed Perforce (p4d) and all it working fine. The thing I’m having trouble with is p4d -d running when the server reboots. I’ve done the following:
sudo apt-get install daemon
cd /etc/init.d
wget https://raw.githubusercontent.com/Allar/linux-perforce-installer/master/p4dservice
chmod +x p4dservice
sudo update-rc.d p4dservice defaults
The script seems to work although I get a “missing lsb information” warning (which I don’t think should effect anything.
The big issue is that on reboot, p4d does not start.
Can someone take a look at that script or maybe this whole process and let me know what I’m doing wrong?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello, @tommywright
You can use chkconfig to add script to start on boot using chkconfig with --add parameter
Another way will be to start with a cron job that will run on every minute, so once the server is booted, the cron will run and start the service.
Hope this helps.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.