rhtyd commented on issue #2226: CLOUDSTACK-10012: Towards CloudStack fat jar
URL: https://github.com/apache/cloudstack/pull/2226#issuecomment-341070902
 
 
   @wido we want to use the same rpm/deb build scripts and packages to work 
which is why I've made them to use jsvc for now. For example, this allows the 
same deb pkg to work on Ubuntu14.04+older versions.
   
   I refactored the systemd service scripts for both centos and ubuntu -- this 
allows the systemd scripts to be same for all systemd enabled distros, however 
in my testing against centos, I found that `ExecStartPre=/bin/bash -c 
"/bin/systemctl set-environment JARS=$(ls 
/usr/share/cloudstack-management/lib/*.jar | tr '\n' ':' | sed s'/.$//')"` did 
not work as expected when user was `cloud` and `Type=simple`, so I changed it 
to run as root user which can set the env variable and use jsvc to fork the 
child process to run as `cloud` user.  I've also noted in the limitation/future 
work that we may want to get rid of this in future (i.e. move to systemd+java 
directly).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to