...
Poznámka |
---|
Management of D2000 applications must be performed as user root |
<appname> is the name of the application, if not specified, the script will ask for the application name.
<command> is one of the options:
create
creates a D2000 application
...
The application can be started with the script ./d2app start <appname>, see below.
delete
deletes the entire <appname> application and the archives that are part of the application
Blok kódu |
---|
|
[root@localhost bin]# ./d2app delete app1
=======================
Ready to delete D2000 application:
Application name: app1
psql executable: /usr/pgsql-9.6/bin/psql
--
D2000 instance name: d2000
D2000 installation dir: /opt/d2000
=======================
Proceed (yY|nN)? [n]: y
Deleting archive "self"
Application "app1" was deleted.
|
start
starts the application <appname>
Blok kódu |
---|
|
[root@localhost bin]# ./d2app start <appname>
<appname> started successfully.
|
stop
stops the application <appname>
Blok kódu |
---|
|
[root@localhost bin]# ./d2app stop <appname>
<appname> stopped successfully.
|
restart
restarts (stops and starts) the application <appname>
Blok kódu |
---|
|
[root@localhost bin]# ./d2app restart <appname>
<appname> restarted successfully. |
status
gives the information on whether the <appname> application is running and whether it has auto-start set
Blok kódu |
---|
|
[root@localhost bin]# ./d2app status app1
app1 is running. Autostart is enabled. |
enable-autostart
enables autostar autostart of the application <appname>
Blok kódu |
---|
|
[root@localhost bin]# ./d2app enable-autostart app1
Autostart of app1 has been enabled. |
disable-autostart
disables autostart of the application <appname>
Blok kódu |
---|
|
[root@localhost bin]# ./d2app disable-autostart app1
Autostart of app1 has been disabled. |
export-syscfg
exports configuration database to a file
Blok kódu |
---|
|
[root@localhost bin]# ./d2app export-syscfg app1
Enter dump file name [app1.syscfg_dmp]:
Enter password for postgresql user dba:
Export to app1.syscfg_dmp finished. |
export-logfile
exports monitoring database to a file
Blok kódu |
---|
|
[root@localhost bin]# ./d2app export-logfile app1
Enter dump file name [app1.logfile_dmp]:
Enter password for postgresql user dba:
Export to app1.logfile_dmp finished. |
import-syscfg
imports configuration database from a file
Blok kódu |
---|
|
[root@localhost bin]# ./d2app import-syscfg app1 app1.syscfg_dmp
Enter password for postgresql user dba:
Import from app1.syscfg_dmp finished. |
import-logfile
imports monitoring database from a file
...