...
Poznámka |
---|
Management of D2000 processes must be performed as a |
The script <instancedir>/bin/d2svc <command> [<appname> [<svcname>]] is used for management of independently started D2000 processes
<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 systemd service for independently started D2000 process.
...
The script creates a systemd service with a name in the form d2000-<appname>-<svcname>.service
, in this case, d2000-app1-remote.kom.service.
After creating the service, the process can be started with a script a ./d2proc start <appname> <proclabel>
, viď nižšie<proclabel>
script, see below.
delete
delets deletes a systemd service for independently started D2000 process.
Blok kódu | ||||
---|---|---|---|---|
| ||||
[root@localhost bin]# ./d2svc delete app1 remote.kom ======================= Ready to delete D2000 service: Application name: app1 Service name: remote.kom -- D2000 instance name: d2000 D2000 installation dir: /opt/d2000 ======================= Really delete the service remote.kom (yes|N)? [n] yes Service "remote.kom" was deleted. |
start
starts an independently started D2000 process.
Blok kódu | ||||
---|---|---|---|---|
| ||||
[root@localhost bin]# ./d2svc start app1 remote.kom remote.kom started successfully. |
stop
stops an independently started D2000 process.
Blok kódu | ||||
---|---|---|---|---|
| ||||
[root@localhost bin]# ./d2svc stop app1 remote.kom remote.kom stopped successfully. |
restart
restarts (stops and starts) an independently started D2000 process.
Blok kódu | ||||
---|---|---|---|---|
| ||||
[root@localhost bin]# ./d2svc restart app1 remote.kom remote.kom restarted successfully. |
status
gives the information on whether the independently started D2000 process is running and whether it has auto-start set
Blok kódu | ||||
---|---|---|---|---|
| ||||
[root@localhost bin]# ./d2svc status app1 remote.kom remote.kom is running. Autostart is enabled. |
enable-autostart
enables autostart of the independently started D2000 process
Blok kódu | ||||
---|---|---|---|---|
| ||||
[root@localhost bin]# ./d2svc enable-autostart app1 remote.kom Autostart of remote.kom has been enabled. |
disable-autostart
disables autostart of the independently started D2000 process
...