Changes between Version 5 and Version 6 of installation_QCG_Notification_in_PLGrid
- Timestamp:
- 05/20/11 09:16:49 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
installation_QCG_Notification_in_PLGrid
v5 v6 14 14 #!div style="font-size: 90%" 15 15 {{{#!sh 16 #useradd -d /opt/plgrid/var/log/smoa-ntf/ smoa_ntf16 useradd -d /opt/plgrid/var/log/smoa-ntf/ smoa_ntf 17 17 }}} 18 18 }}} … … 22 22 #!div style="font-size: 90%" 23 23 {{{#!sh 24 25 #cat > /etc/yum.repos.d/qcg.repo << EOF26 27 28 29 30 31 24 #QosCosGrid testing repository 25 cat > /etc/yum.repos.d/qcg.repo << EOF 26 [qcg] 27 name=QosCosGrid YUM repository 28 baseurl=http://fury.man.poznan.pl/qcg-packages/sl/x86_64/ 29 enabled=1 30 gpgcheck=0 31 EOF 32 32 33 34 #rpm -Uvh http://software.plgrid.pl/packages/repos/plgrid-repos-2010-2.noarch.rpm33 #Official PL-Grid repository 34 rpm -Uvh http://software.plgrid.pl/packages/repos/plgrid-repos-2010-2.noarch.rpm 35 35 }}} 36 36 }}} … … 40 40 #!div style="font-size: 90%" 41 41 {{{#!sh 42 #yum install smoa-ntf42 yum install smoa-ntf 43 43 }}} 44 44 }}} … … 48 48 #!div style="font-size: 90%" 49 49 {{{#!sh 50 # /opt/plgrid/qcg/smoa/share/smoa-ntf/tools/smoa-ntf-install.sh 51 Welcome to smoa-ntf installation script! 50 /opt/plgrid/qcg/smoa/share/smoa-ntf/tools/smoa-ntf-install.sh 51 Welcome to smoa-ntf installation script! 52 53 This script will guide you through process of configuring proper environment 54 for running the Smoa Notification service. You have to answer few questions regarding 55 parameters of your database. If you are not sure just press Enter and use the 56 default values. 52 57 53 This script will guide you through process of configuring proper environment 54 for running the Smoa Notification service. You have to answer few questions regarding 55 parameters of your database. If you are not sure just press Enter and use the 56 default values. 58 Use local PostgreSQL server? (y/n) [y]: y 59 Database [smoa_ntf]: 60 User [smoa_ntf]: 61 Password [smoa_ntf]: MojeTajneHaslo 62 Create database? (y/n) [y]: y 63 Create user? (y/n) [y]: y 57 64 58 Use local PostgreSQL server? (y/n) [y]: y 59 Database [smoa_ntf]: 60 User [smoa_ntf]: 61 Password [smoa_ntf]: MojeTajneHaslo 62 Create database? (y/n) [y]: y 63 Create user? (y/n) [y]: y 65 Checking for system user smoa_comp...OK 66 Checking whether PostgreSQL server is installed...OK 67 Checking whether PostgreSQL server is running...OK 64 68 65 Checking for system user smoa_comp...OK 66 Checking whether PostgreSQL server is installed...OK 67 Checking whether PostgreSQL server is running...OK 69 Performing installation 70 * Creating user smoa_ntf...OK 71 * Creating database smoa_ntf...OK 72 * Creating database schema...OK 73 * Checking for ODBC data source smoa_ntf... 74 * Installing ODBC data source...OK 75 76 Remember to add appropriate entry to /var/lib/pgsql/data/pg_hba.conf (as the first rule!) to allow user smoa_ntf to 77 access database smoa_ntf. For instance: 68 78 69 Performing installation 70 * Creating user smoa_ntf...OK 71 * Creating database smoa_ntf...OK 72 * Creating database schema...OK 73 * Checking for ODBC data source smoa_ntf... 74 * Installing ODBC data source...OK 75 76 Remember to add appropriate entry to /var/lib/pgsql/data/pg_hba.conf (as the first rule!) to allow user smoa_ntf to 77 access database smoa_ntf. For instance: 79 host smoa_ntf smoa_ntf 127.0.0.1/32 md5 78 80 79 host smoa_ntf smoa_ntf 127.0.0.1/32 md5 80 81 and reload Postgres server. 81 and reload Postgres server. 82 82 }}} 83 83 }}} … … 88 88 #!div style="font-size: 90%" 89 89 {{{#!sh 90 91 90 vim /var/lib/pgsql/data/pg_hba.conf 91 /etc/init.d/postgresql reload 92 92 }}} 93 93 }}} … … 100 100 #!div style="font-size: 90%" 101 101 {{{#!xml 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 102 <sm:SMOACore 103 <Configuration> 104 .... 105 <sm:Module xsi:type="sm:ecm_gsoap.service"> 106 <sm:Host>'''127.0.0.1'''</sm:Host> 107 <sm:Port>'''19001'''</sm:Port> 108 <sm:UseWsa>true</sm:UseWsa> 109 </sm:Module> 110 .... 111 <smn:Database> 112 <smn:DatabaseEnabled>true</smn:DatabaseEnabled> 113 <smn:DSN>'''smoa_ntf'''</smn:DSN> 114 <smn:User>'''smoa_ntf'''</smn:User> 115 <smn:Password>'''smoa_ntf'''</smn:Password> 116 <smn:CleanAtStart>false</smn:CleanAtStart> 117 </smn:Database> 118 .... 119 </Configuration> 120 </sm:SMOACore> 121 121 }}} 122 122 }}} … … 133 133 #!div style="font-size: 90%" 134 134 {{{#!sh 135 135 /etc/init.d/smoa-ntfd start 136 136 }}} 137 137 }}} … … 141 141 #!div style="font-size: 90%" 142 142 {{{#!sh 143 143 /opt/smoa/var/log/smoa-ntf/smoa-ntfd.log 144 144 }}} 145 145 }}} … … 149 149 #!div style="font-size: 90%" 150 150 {{{#!sh 151 151 /etc/init.d/smoa-ntfd stop 152 152 }}} 153 153 }}} … … 159 159 #!div style="font-size: 90%" 160 160 {{{#!sh 161 162 161 $ tail -f /opt/plgrid/var/log/smoa-comp/smoa-comp.log 162 INF Sep 17 16:15:01 24201 0x44b22940 [notification_ws] Sending notify message (topic = ActivityState/TerminalState/Finished, activity_id = 0544b24a-e960-400e-4910-f1a893632610, status = Finished) 163 163 }}} 164 164 }}}