| #!/bin/bash |
| |
| |
| t_Log "Running $0 - initializing and starting PostgreSQL" |
| |
| if (t_GetPkgRel postgresql | grep -q el6) |
| then |
| t_Log "Initialize PostgreSQL DB " |
| service postgresql initdb |
| t_ServiceControl postgresql start |
| sleep 15 |
| else |
| t_ServiceControl postgresql start |
| sleep 15 |
| fi |