we do not wish to run it that way is there another option.
APMIA 10.7, RHEL 7.x
If the APMIA has not been installed and a service craeted then it can be started using the force_start option and this can be incorporated into a service start script. The following shows an example of this working
Create a startup script in /etc/.init/d and give it execute permission - in the example it is called apmia contents as below. In this example the user that owns and runs the APMIA is introscp and the script is defined to run in run levels 3,4 & 5
#!/bin/bash # chkconfig: 345 25 75
# change to location where apmia is located cd /home/introscp/apmia
case $1 in start) su introscp -c "./apmia-ca-installer.sh force_start" ;; stop) su introscp -c "./apmia-ca-installer.sh stop" ;; status) su introscp -c "./apmia-ca-installer.sh status" ;; *) echo "usage apmia start|stop|status" esac
When the service status is interrogated after system start we can see it running as the descired user