opt_perforce_sdp_backup.service #1

  • //
  • guest/
  • perforce_software/
  • sdp/
  • dev/
  • Server/
  • Unix/
  • p4/
  • common/
  • etc/
  • systemd/
  • system/
  • opt_perforce_sdp_backup.service
  • View
  • Commits
  • Open Download .zip Download (212 B)
[Unit]
Description=SDP OS Package Structure Backup Script
Wants=backup.timer
After=network.target

[Service]
Type=oneshot
ExecStart=/p4/common/bin/opt_perforce_sdp_backup.sh

[Install]
WantedBy=multi-user.target
# Change User Description Committed
#2 31182 C. Thomas Tyler Adapted opt_perforce_sdp_backup service to work with SELinux in
enforcing mode.

Added logic from sdp_upgrade.sh that installs SDP the backup
service into install_sdp.sh.

With this adjustment, the service now specifies the "on disk"
location of the file; no symlinks are allowed in the absolute
path to the script (to keep SELinux happy).  For clarity,
'User=root' was added to the systemd service file for the
backup utility.
#1 31050 C. Thomas Tyler Added script to back SDP OS Package Structure.

Modified sdp_upgrade.sh to install a systemd oneshot service to call this
script if operating on a system using the SDP OS Package Structure (i.e.
a systemd where /opt/perforce/helix-sdp exists).