3 changed files with 51 additions and 0 deletions
@ -0,0 +1,7 @@ |
|||||||
|
include.path=${php.global.include.path} |
||||||
|
php.version=PHP_70 |
||||||
|
source.encoding=UTF-8 |
||||||
|
src.dir=. |
||||||
|
tags.asp=false |
||||||
|
tags.short=false |
||||||
|
web.root=. |
@ -0,0 +1,9 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<project xmlns="http://www.netbeans.org/ns/project/1"> |
||||||
|
<type>org.netbeans.modules.php.project</type> |
||||||
|
<configuration> |
||||||
|
<data xmlns="http://www.netbeans.org/ns/php-project/1"> |
||||||
|
<name>webrtc-ratchet-chat-app</name> |
||||||
|
</data> |
||||||
|
</configuration> |
||||||
|
</project> |
@ -0,0 +1,35 @@ |
|||||||
|
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 |
Loading…
Reference in new issue