How To: Manage InterWorx Services at the CLI¶
Note
/home/interworx/bin/iworx-ctl was introduced in version 8.2.14.
InterWorx consists of three internal services:
The internal Apache instance (
iworx-web)The internal PHP-FPM service (which is connected to
iworx-web)The internal MariaDB instance (
iworxdb)
These services can be managed at the CLI, using /home/interworx/bin/iworx-ctl {action}, replacing {action} with the corresponding information.
This can also be written as ~iworx/bin/iworx-ctl {action}.
Users who include InterWorx in their monitoring tools should use /home/interworx/bin/iworx-ctl {action} instead of service iworx {action} or systemctl {action} iworx.
Contents
To Manage InterWorx¶
This manages InterWorx, as a whole.
Status:
/home/interworx/bin/iworx-ctl statusStart:
/home/interworx/bin/iworx-ctl startStop:
/home/interworx/bin/iworx-ctl stopRestart:
/home/interworx/bin/iworx-ctl restart
Alternately:
Status:
~iworx/bin/iworx-ctl statusStart:
~iworx/bin/iworx-ctl startStop:
~iworx/bin/iworx-ctl stopRestart:
~iworx/bin/iworx-ctl restart
Example:
[root@server ~]# ~iworx/bin/iworx-ctl status
iworx-web is running... [ OK ]
iworxphp82-php-fpm is running... [ OK ]
iworx-db is running... [ OK ]
[root@server ~]#
To Manage the InterWorx Web Service¶
This manages both the internal Apache instance, as well as the internal PHP-FPM service.
Start:
/home/interworx/bin/iworx-ctl startwebStop:
/home/interworx/bin/iworx-ctl stopwebRestart:
/home/interworx/bin/iworx-ctl restartweb
Alternately:
Start:
~iworx/bin/iworx-ctl startwebStop:
~iworx/bin/iworx-ctl stopwebRestart:
~iworx/bin/iworx-ctl restartweb
To Manage the InterWorx Database Service¶
This manages the internal MariaDB instance.
Start:
/home/interworx/bin/iworx-ctl startdbStop:
/home/interworx/bin/iworx-ctl stopdbRestart:
/home/interworx/bin/iworx-ctl restartdb
Alternately:
Start:
~iworx/bin/iworx-ctl startdbStop:
~iworx/bin/iworx-ctl stopdbRestart:
~iworx/bin/iworx-ctl restartdb