A text, audio and video chat application built with webRTC and Ratchet (PHP WebSocket)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

35 lines
808 B

FOR CENTOS7
Create a file named "ratchet.service" in /etc/systemd/system/ and put the following in it:
[Unit]
Description=Ratchet Service
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/php -f /path/to/ratchet/server$
Restart=on-abort
[Install]
WantedBy=multi-user.target
*********************************************************************************************
*********************************************************************************************
*********************************************************************************************
*********************************************************************************************
To check status:
service ratchet status
To start
service ratchet start
To stop
service ratchet stop
To restart
service ratchet restart