How to create system.d services file for Policy Server STOP/START services.
Policy Server Version: 12.8.x and 12.9
O/S: RHEL
Below is sample system.d services which can be used as reference:
$ grep '^Exec' sm{ui,ps}.service
smui.service:ExecStart=/bin/env -i /bin/bash -c '. /<installer location>/CA/siteminder/ca_ps_env.ksh; /<installer location>/CA/siteminder/adminui/bin/standalone.sh'
smui.service:ExecStop=/bin/env -i /bin/bash -c '. /<installer location>/CA/siteminder/ca_ps_env.ksh; /<installer location>/CA/siteminder/adminui/bin/jboss-cli.sh -c --command=:shutdown'
smps.service:ExecStart=/bin/env -i /bin/bash -c '. /<installer location>/CA/siteminder/ca_ps_env.ksh; /<installer location>/CA/siteminder/start-all'
smps.service:ExecStop=/bin/env -i /bin/bash -c '. /<installer location>/CA/siteminder/ca_ps_env.ksh; /<installer location>/CA/siteminder/stop-all'
The "/bin/env -i" could be removed, though. Then the startup shell scripts would be able to observe the standard systemd environment variables (though they do not rely on them).
NOTE: There is no official system.d service configuration file at the moment. The above is just a sample and recommendation.