rvalle commented on issue #3954: Cloudstack Management Improper shutdown
URL: https://github.com/apache/cloudstack/issues/3954#issuecomment-597606152
 
 
   @DaanHoogland 
   when supplementing a service profile it is possible to create a directory 
under /etc/systemd... (as shown avobe) and under the directory an independent 
file can be created to map each dependency.
   
   systemd foresees this particular use case where dependencies need to be 
tuned by the system administrator, independently of the software distribution.
   
   Package distributions will install their service units under /lib/systemd 
and will not interfere.
   
   In other words, I can add an ldap-dep.conf file and an nginx-dep.conf in 
/etc/systemd/system/cloudstack-management.service.d/ and they will complement 
the file provided by the distribution, even if there are updates (directory 
trees are independent).
   
   Having said this, we face 2 problems.
   - Admins may or may not run mysql alongside the management server
   - Admins may or may not run other services (ldap, nginx, etc).
   
   What I think we could implement is:
   - leave **/lib/systemd/system/cloudstack-management.service** unchanged, 
because we don't know where mysql will run, and we cannot ask the admins to 
patch that file according to their env.
   - modify **cloudstack-setup-databases** to create a service profile 
supplement by default, creating the dependency as: 
**/etc/systemd/system/cloudstack-management.service.d/mysql-dep.conf** with an 
option to disable its creation for the cases in which both servers won't run 
alongside.
   - include a reference in the documentation. perhaps a link to the redhat 
configuration above, also in form of comments on the distributed service file 
and the file created by **cloudstack-setup-databases**

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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