Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

...

Poznámka

Management of D2000 processes must be performed as user root

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.

...

After creating the service, the process can be started with a script ./d2proc start <appname> <proclabel>, viď nižšie.

delete

delets a systemd service for independently started D2000 process.

Blok kódu
languagetext
themeEmacs
[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
languagetext
themeEmacs
[root@localhost bin]# ./d2svc start app1 remote.kom
remote.kom started successfully.

stop

stops an independently started D2000 process.

Blok kódu
languagetext
themeEmacs
[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
languagetext
themeEmacs
[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
languagetext
themeEmacs
[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
languagetext
themeEmacs
[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 

...