This program create and register a listener on systemd for integration between PHP and IBM MQ product. It should be keep in mind that the extension mqseries for PHP must be install before.
- environment Contains files with vars environment
- test Contains files php for testing
- units Contains files for each service/daemon listener to register on systemd
- conf_check Shell Script that check config of service/daemon listener
- phpmqctl Shell Script that control the action start|stop of service/daemon listener
- Configure the paths, vars and your structure according to the system.
- Copy unit file to path
/etc/systemd/system
for register the new service/daemon. - Execute
sudo systemctl daemon-reload
for reload the services list. - Execute
sudo systemctl list-unit-files
for search your new service/daemon registered. - Execute
sudo systemctl start apptrs-notificaciones.service
for start the listener. Only if you have seen the service/daemon registered. - Execute
sudo systemctl status apptrs-notificaciones.service
for get more details about the status and logging of listener. - Execute
sudo systemctl stop apptrs-notificaciones.service
for stop the listener. - Execute
sudo systemctl enable apptrs-notificaciones
for register the listener to automatic start with OS. This command is optional according you need.