Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

Run perforce Server as a Service

rajeshkumar created the topic: Run perforce Server as a Service
Run perforce Server as a Service OR boot automatically when system restart

Template of p4d file under /etc/init.d
========================================

#! /bin/sh
#
# chkconfig: 35 95 05
# description: Perforce revision control system server.
#

umask 022

# Source function library.
. /etc/rc.d/init.d/functions

. /etc/p4d.conf

START_CMD="${P4D_DAEMON} -d -L $P4D_LOG -J $P4D_JOURNALS -r $P4D_ROOT -p $P4D_PO RT"

# See how we were called.
case "$1" in
start)
echo -n "Starting p4d "
if [ ! -z "$P4D_USER" ]; then
su - $P4D_USER -c "$START_CMD"
else
$START_CMD
fi
touch /var/lock/subsys/p4d
;;
stop)
echo -n "Stopping p4d: "
killproc p4d

echo
rm -f /var/lock/subsys/p4d
;;
status)
status p4d
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: p4d {start|stop|status|restart}"
exit 1
esac

exit 0

Template of p4d.conf
=====================================
P4D_ROOT=/local/home/perforce/p4root
P4D_DAEMON=${P4D_ROOT}/p4d
P4D_LOG=${P4D_ROOT}/logs/p4d.log
P4D_JOURNALS=/backups/perforce_journal/journal
P4D_USER=perforce
P4D_PORT=1666

Add /etc/init.d/p4d into chkconfig using following command…

chkconfig –add /etc/init.d/p4d
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

chander replied the topic: Re: Run perforce Server as a Service
I think Services is a windows concept and method.

To run perforce as a service the Perforce Server should be installed as a Windows service. Then an Administrator privileges can start and stop it using the Services dialog in the Control Panel.

To start the Perforce service:
Context-click on “My Computer”, and select “Manage”. The “Computer Management” window is displayed.
In the right hand pane, double click on “Services and Applications”.
Double click on “Services”. You now have a list of available Windows services.
Scroll down until you see the “Perforce” service. Right click on this item and select “Start”.

In Unix it is running as a Daemon

rajeshkumar replied the topic: Re: Run perforce Server as a Service
Hi chander,

Thanks for correcting terminology and your inputs for windows…
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at <a href="https://www.cotocus.com/">Cotocus</a>. I share tech blog at <a href="https://www.devopsschool.com/">DevOps School</a>, travel stories at <a href="https://www.holidaylandmark.com/">Holiday Landmark</a>, stock market tips at <a href="https://www.stocksmantra.in/">Stocks Mantra</a>, health and fitness guidance at <a href="https://www.mymedicplus.com/">My Medic Plus</a>, product reviews at <a href="https://www.truereviewnow.com/">TrueReviewNow</a> , and SEO strategies at <a href="https://www.wizbrand.com/">Wizbrand.</a> Do you want to learn <a href="https://www.quantumuting.com/">Quantum Computing</a>? <strong>Please find my social handles as below;</strong> <a href="https://www.rajeshkumar.xyz/">Rajesh Kumar Personal Website</a> <a href="https://www.youtube.com/TheDevOpsSchool">Rajesh Kumar at YOUTUBE</a> <a href="https://www.instagram.com/rajeshkumarin">Rajesh Kumar at INSTAGRAM</a> <a href="https://x.com/RajeshKumarIn">Rajesh Kumar at X</a> <a href="https://www.facebook.com/RajeshKumarLog">Rajesh Kumar at FACEBOOK</a> <a href="https://www.linkedin.com/in/rajeshkumarin/">Rajesh Kumar at LINKEDIN</a> <a href="https://www.wizbrand.com/rajeshkumar">Rajesh Kumar at WIZBRAND</a> <a href="https://www.rajeshkumar.xyz/dailylogs">Rajesh Kumar DailyLogs</a>

Related Posts

Step by step guide on PerforceDFiles Tool | Perforce Tutorial

Step-by-Step Guide on PerforceDFiles Tool PerforceDFiles is a diagnostic tool used in Perforce Helix Core (P4) to list, analyze, and delete orphaned or corrupted files from the…

Read More

Ruby and Perl Script to find all Perforce users who have not set passwords

These scripts will:✅ Connect to the Perforce server✅ Retrieve a list of users✅ Identify users without passwords 1. Prerequisites Before running the scripts, ensure:✔ Perforce CLI (p4)…

Read More

Ruby and Perl Scripts to List Perforce Clients in Descending Access Date Order

These scripts will:✅ Connect to the Perforce server✅ Retrieve a list of clients (workspaces)✅ Sort them by last access date (descending order) 1. Prerequisites Before running the…

Read More

The P4Win Window Navigation Guide in Perforce

P4Win Window Navigation Guide P4Win (Perforce for Windows) has a classic Windows-style interface, making it easy to navigate for developers familiar with GUI-based version control. This guide…

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x