Enhance mkdirs.sh to handle systemd configuration for installed services.
The Helix Installer installs systemd unit files, but the SDP does
not (though it has templates for them). Thus the systemd config
is only handled for the first instance on a given machine, and
manual configuration of systemd services is required when adding
additional instances. When this feature is implementt, this manual
step will be eliminated.
This change will need to be coordinated with the Helix Installer,
so when it installs versions of SDP after this is deployed, it
defers to SDP to do systemd configuration, that's currently
handled only by the Helix Installer.
Yes, and this also needs to handle the case where the OSUSER is not "perforce". That can
lead to some frustration as service will fail to start with misleading error message!
Thus mkdirs.sh should provide and updated p4d_1.service file, and if doing a -test it should
diff it against the existing one.
All sounds good! The Helix Installer (which already generates systemd service files and accounts for OSUSER) will also need to change. If installing SDP of a greater version than whatever version this change comes in, it'll defer to the SDP for systemd configuration. See job HI-75.
Yes, and this also needs to handle the case where the OSUSER is not "perforce". That can
lead to some frustration as service will fail to start with misleading error message!
Thus mkdirs.sh should provide and updated p4d_1.service file, and if doing a -test it should
diff it against the existing one.
All sounds good! The Helix Installer (which already generates systemd service files and accounts for OSUSER) will also need to change. If installing SDP of a greater version than whatever version this change comes in, it'll defer to the SDP for systemd configuration. See job HI-75.