p4dtg_N.service.t #1

  • //
  • guest/
  • perforce_software/
  • sdp/
  • dev/
  • Server/
  • Unix/
  • p4/
  • common/
  • etc/
  • systemd/
  • system/
  • p4dtg_N.service.t
  • View
  • Commits
  • Open Download .zip Download (448 B)
[Unit]
Description=Helix P4DTG Instance __INSTANCE__.
Documentation=https://swarm.workshop.perforce.com/projects/perforce-software-sdp/view/main/doc/SDP_Guide.Unix.pdf
Requires=network.target
After=network.target

[Service]
Type=simple
ExecStart=/p4/__INSTANCE__/bin/p4dtg___INSTANCE___init start
ExecStop=/p4/__INSTANCE__/bin/p4dtg___INSTANCE___init stop
User=__OSUSER__
Environment=OS_INIT_MECHANISM=systemd

[Install]
WantedBy=multi-user.target
# Change User Description Committed
#2 32402 C. Thomas Tyler Fixed so the p4dtg_N (P4DTG) service can be managed with systmectl, e.g.

sudo systemctl start p4dtg_1
sudo systemctl status p4dtg_1
sudo systemctl stop p4dtg_1

Also added support for a "force_start" option, similar to that being added for
p4d (per SDP-837).

This change includes:
* Modifiedcation to the temmplate for the p4dtg_N_init script.
* Addition of new template for the systemd p4dtg_N.service file.
* Added a new script to generate a systemctl-compatible environment file from
the standard SDP shell environment mechanism.

See: SDP-552.

#review-32403
#1 27148 C. Thomas Tyler Added templates for systemd unit files.