dmwm / PHEDEX

CMS data-placement suite
8 stars 18 forks source link

Request for SysV init scripts for phedex #1005

Open njpfnal opened 8 years ago

njpfnal commented 8 years ago

I would like to request that PHEDEX get proper init scripts with it's installation RPMs for Redhat 6/7 that will follow the requirements for SysV and systemd.

This will allow for proper starting and stopping of the phedex service in a redhat environment.

Basic documentation can be found here for sysv: https://fedoraproject.org/wiki/Packaging:SysVInitScript#Fedora_SysV_Initscripts

Basic systemd documentation: https://fedoraproject.org/wiki/Packaging:Systemd

nataliaratnikova commented 8 years ago

PhEDEx is experiment specific application, and implementing init scripts support in a standard way like for system packages is not immediately possible for two reasons:

1) PhEDEx rpms are installable only as non-root user and have no access to the system areas. Another privileged process will need to put the init scripts in place. 2) PhEDEx agents start/stop requires configuration files, which are not part of PhEDEx distribution and are maintained separately by the PhEDEx site admins.

CMS baseline solution for distributing software is via cvmfs, if PhEDEx gets distributed this way, there won't be any local installation process for the releases, only configuration. It is possible however to manage agents start at boot time using a wrapper around PhEDEx Master script [1,2] . It is provided for managing configuration and implements start/stop commands in a way compatible with SysV init scripts.

[1] https://twiki.cern.ch/twiki/bin/view/CMS/PhedexAdminDocsMaster [2] https://github.com/dmwm/PHEDEX/blob/master/Utilities/Master .