1. cd /lib/systemd/system 2. sudo nano sipas-notif-fcm.service 3. [Unit] Description=SIPAS FCM [Service] Type=simple Restart=always RestartSec=1 User=www-data Group=www-data WorkingDirectory=/var/www/html/sipas ExecStart=/usr/bin/env /usr/bin/php /var/www/html/sipas/server.php worker/notif PIDFile=/var/run/sipas-notif-fcm.pid [Install] WantedBy=multi-user.target 4. sudo systemctl start sipas-notif-fcm.service 5. sudo systemctl status sipas-notif-fcm.service 6. sudo systemctl enable sipas-notif-fcm.service 7. sudo nano sipas-notif-redis.service 8. [Unit] Description=SIPAS REDIS [Service] Type=simple Restart=always RestartSec=1 User=www-data Group=www-data WorkingDirectory=/var/www/html/sipas ExecStart=/usr/bin/env /usr/bin/php /var/www/html/sipas/server.php worker/notif_redis PIDFile=/var/run/sipas-notif-redis.pid [Install] WantedBy=multi-user.target 9. sudo systemctl start sipas-notif-redis.service 10. sudo systemctl status sipas-notif-redis.service 11. sudo systemctl enable sipas-notif-redis.service 12. sudo nano hcm-sync-data.service [Unit] Description=Data synchronization from hcm to SIPAS [Service] Type=simple Restart=always RestartSec=5 User=www-data Group=www-data WorkingDirectory=/var/www/html/sipas ExecStart=/usr/bin/env /usr/bin/php /var/www/html/sipas-dev/server.php worker/hcm_integration PIDFile=/var/run/hcm-sync-record.pid [Install] WantedBy=multi-user.target