|
Sign-In Sources Mailing lists Downloads Live collector Documentation Admins Contacts Welcome |
||||||||
|
Documentation index 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 addressesWe 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 filesThose are created automatically by the svcmgr create command. Experienced users will find it easier to start from a copy of the env file of an existing similar service. The following information describes the steps needed to create a service manually. Service 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 or /opt/opensvc/etc/unxtstsvc01.mydomain.com.d -> unxdevweb01.mydomain.com.dir /opt/opensvc/etc/unxdevweb01.mydomain.com.dir Configuration files role
Customize the service env fileAt that point you should describe your service's ip addresses, filesystems, disk groups, file synchronizations ... The /opt/opensvc/usr/share/doc/template.env template presents you with all possible configurations available. The svcmgr create -s newsvc -i command prompts you about all possible configurations, explains the role of each keyword, proposes candidate values and defaults, and validate input sanity. This same command in non-interactive mode can be used to provision service from scripts or OpenSVC compliance modules. In this mode, the resources are passed as json-serialized keyword/value dictionaries. 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 |
|||||||||