[Unit] Description=P4 Broker Instance 1 using default broker config. Documentation=https://workshop.perforce.com/view/p4-sdp/r25.1/doc/SDP_Guide.Unix.html Requires=network.target After=network.target [Service] Type=simple ExecStart=/p4/1/bin/p4broker_1_init start ExecStop=/p4/1/bin/p4broker_1_init stop User=perforce Environment=OS_INIT_MECHANISM=systemd [Install] WantedBy=multi-user.target
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 31615 | C. Thomas Tyler |
First pass at rebranding changes, including: * Changes to remove 'swarm.' from Workshop URLS, so swarm.workshop -> workshop. * Changed URL for Copyright. * Renamed get_helix_binaries.sh -> get_p4_binaries.sh, with associated directory and doc changes. * Accounted for rename of HAS -> P4AS. * Changed HMS references to P4MS. * Replaced "Helix" and "Helix Core" references. * Renamed variables to reduce tech debt buildup induced by rebranding. * Changed default mount points: /hxdepots[-1,N] -> /p4depots[-1,N] /hxmetadata[1,2] -> /p4db[-1,2] /hxlogs -> /p4logs Also made some changes related to rebranding going out with r25.1. |
||
#1 | 31591 | C. Thomas Tyler | Populate stream //p4-sdp/dev_rebrand from //p4-sdp/dev. | ||
//p4-sdp/dev/Server/Unix/setup/systemd/p4broker_1.service | |||||
#1 | 31397 | C. Thomas Tyler | Populate -b SDP_Classic_to_Streams -s //guest/perforce_software/sdp/...@31368. | ||
//guest/perforce_software/sdp/dev/Server/Unix/setup/systemd/p4broker_1.service | |||||
#6 | 27148 | C. Thomas Tyler | Added templates for systemd unit files. | ||
#5 | 27109 | C. Thomas Tyler |
Refined logic so that if a shutdown is attempted and there is no server.pid file, the 'fallback/2nd pass/assured shutdown' logic to do a 'p4 admin stop' files only if a 'p4 info' command can reach the server. Otherwise, the stop command is silently ignored. Refined exit code handling and fixed log interaciton issues. Fixed issue with systemd status not indicating successful startup. The systemd unit files now specify the Type as simple rather than forking, and defer to systemd to handle the forking. When systemd is used, the -d/--daemonsafe flags are removed from service start commands for p4p/p4broker/p4d, and for p4dtg the & is removed so the process is not started in the background. For compatibility with non-systemd systems, the -d/--daemonsafe flags are still applied when systemd is not in use. With this change, systemd's concept of whether the service is running should now be reliable. If you try to start without using systemd on a system for which a systemd unit file exists, an error is displayed -- a big, hopefully useful and informative error message. #review |
||
#4 | 26888 | C. Thomas Tyler |
Updated doc links to reference SDP rather than core docs in systemd service files. Added sample systemd file for p4p (Helix Proxy). |
||
#3 | 24880 | C. Thomas Tyler |
Removed references to NetworkManager, as this is an unnecessary dependency and hinders portability. |
||
#2 | 22649 | C. Thomas Tyler |
Added 'Requires' and 'After' targets to sample systemd service files. #review @giles |
||
#1 | 15797 | C. Thomas Tyler | Routine Merge Down to dev from main for SDP. | ||
//guest/perforce_software/sdp/main/Server/Unix/setup/systemd/p4broker_1.service | |||||
#1 | 15793 | C. Thomas Tyler |
Added sample systemd init scripts for the SDP for RHEL/CentOS 7 and other Linux distros that use systemd. Also updated README.md for firewalld. |