p4dctl命令工具

原文链接

https://www.perforce.com/manuals/p4sag/Content/P4SAG/appendix.p4dctl.html

Helix Core Server Control(p4dctl)实用程序可以管理 在本地主机上运行的Perforce服务。

root 用户:

● 是/etc/perforce/目录的 Linux 所有者,可以启动和停止所有服务

● 可以配置/etc/perforce/p4dctl.conf文件以允许一个或多个非 root 用户(例如perforce用户)启动和停止某些服务

bash 复制代码
root@heyu-VMware-Virtual-Platform:~# p4dctl list
Type     Owner        Name         Config
p4d      perforce     ncayu        port=ssl:1666 root=/opt/perforce/servers/ncayu/root
root@heyu-VMware-Virtual-Platform:~# 
root@heyu-VMware-Virtual-Platform:~# 
root@heyu-VMware-Virtual-Platform:~# 
root@heyu-VMware-Virtual-Platform:~# p4dctl status ncayu
'ncayu' p4d service is running.
root@heyu-VMware-Virtual-Platform:~# 

帮助文档

bash 复制代码
root@heyu-VMware-Virtual-Platform:~# p4dctl

Usage: p4dctl [global flags] <cmd> [flags] [service name]

Global Flags
------------

-c <cfg_file>    - Path to config file. Default: /etc/perforce/p4dctl.conf
-p <pid_dir>     - Path to pid file directory. Default: /var/run
-q               - Send output to syslog instead of stdout/stderr
-v <level>       - Set debug level to <level> (1-9)
-V               - Print version and exit

Commands
--------

list             - List configured service(s)
start            - Start the specified service(s)
stop             - Stop the specified service(s)
restart          - Restart the specified service(s)
status           - Check the status of the specified service(s)
checkpoint       - Checkpoint the specified p4d service(s)
journal          - Rotate p4d service(s) journal file
env              - Query the environment of services


root@heyu-VMware-Virtual-Platform:~#

配置文件

bash 复制代码
/etc/perforce/p4dctl.conf

安装路径

bash 复制代码
/opt/perforce/sbin/

文件内容helix-p4dctl.service

bash 复制代码
Unit]
Description=Helix Core Server
After=network.target
After=remote-fs.target

[Service]
ExecStart=/opt/perforce/sbin/p4dctl-init.sh start
ExecStop=/opt/perforce/sbin/p4dctl-init.sh stop
ExecReload=/opt/perforce/sbin/p4dctl-init.sh reload
GuessMainPID=no
IgnoreSIGPIPE=no
KillMode=process
PrivateTmp=true
RemainAfterExit=yes
Restart=always
SuccessExitStatus=5 6
TimeoutSec=5min
Type=simple

[Install]
WantedBy=multi-user.target

https://www.perforce.com/manuals/p4sag/Content/P4SAG/appendix.p4dctl.html


相关推荐
APItesterCris3 小时前
实战教程:借助 Open Claw + 淘宝商品 API,低成本实现电商自动化监控与智能选品
大数据·运维·自动化
风曦Kisaki5 小时前
# 自动化运维Day03:Ansible模块进阶(setup,debug),四种常用变量,进阶语法;Ansible Roles(角色)
运维·自动化·ansible
赵民勇5 小时前
Linux strings命令详解
linux·运维
敲代码的瓦龙5 小时前
操作系统?Android与Linux!!!
android·linux·运维
茶乡浪子6 小时前
同子网基于IPv4网络静态VXLAN配置示例(下)
运维·网络·数据中心·vxlan·evpn·华为vxlan·华为数据中心网络
专注API从业者6 小时前
电商选品效率翻倍!基于 Open Claw + 淘宝商品 API 实现自动化监控选品(附完整可运行代码)
大数据·运维·数据结构·数据库·自动化
云计算磊哥@6 小时前
运维开发宝典025-MySQL01数据库的安装和配置
运维·数据库·运维开发
Dxy12393102166 小时前
BAT 窗口不输出日志:三种静默方案,从半隐藏到完全消失
linux·运维·服务器
kida_yuan6 小时前
不想花钱写了一个 Flask 知识库
运维·python
Tian_Hang6 小时前
Linux基础知识(一)
linux·运维·服务器