OpenSVC |
|||||||||
Service creationChoose a service nameGuidelines:
This guidelines result in names like gieprdtransco01, infraprddns01, ... Following this naming will help grasp importance, clients and role of service from the output of /opt/opensvc/bin/svcmon Allocate generic account and ip adressesWe recommend to allocate service-dedicated ip addresses, to permit service failover to secondary nodes. We recommend to allocate service-dedicated generic accounts (one is ok most of the time), at least for 'hosted' service, for better control on privileges. All service files should be owned by these accounts except the application launchers, which must be owned by root as they are executed with root privileges. The generic account home directory should be a link redirecting to a subdirectory of one of the service-dedicated filesystems (the one hosting data is a good candidate). Select a service mode
Create a filesystem skeleton for the serviceHere is a set of guidelines you should respect.
Install virtual host and applicationsThe virtual host is not required for 'hosted' services. Create configuration filesService configuration files are in /opt/opensvc/etc. Each service must have these three files present to be fully functional. Services using the internet shared collector must be named using the domainname as a suffix to avoid naming conflicts. /opt/opensvc/etc/unxdevweb01.mydomain.com -> ../bin/svcmgr /opt/opensvc/etc/unxdevweb01.mydomain.com.env /opt/opensvc/etc/unxtstsvc01.mydomain.com.d -> /unxtstscv01/etc/init.d Configuration files role
Customize the service env fileThere you should describe your service's ip adresses, filesystems, disk groups, file synchronizations ... The /opt/opensvc/usr/share/doc/template.env template presents you with all possible configurations available TestYou should now be able to run succesfully /opt/opensvc/etc/gieprdweb01 print_status /opt/opensvc/etc/gieprdweb01 start /opt/opensvc/etc/gieprdweb01 stop |
|||||||||
|
Copyright © 2010 OpenSVC - Powered by web2py |
|||||||||