2019-10-23 15:23:21 +02:00
|
|
|
[Unit]
|
|
|
|
Description=php webSocket
|
|
|
|
After=syslog.target network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=apache
|
|
|
|
|
|
|
|
Type=simple
|
2020-06-08 10:48:48 +02:00
|
|
|
ExecStart=php /var/www/html/pandora_console/ws.php >> /var/log/pandora/web_socket.log 2>&1
|
2019-10-23 15:23:21 +02:00
|
|
|
TimeoutStopSec=20
|
|
|
|
KillMode=process
|
|
|
|
Restart=always
|
|
|
|
RestartSec=2
|
2020-06-08 10:48:48 +02:00
|
|
|
StandardOutput=file:/var/log/pandora/web_socket.log
|
|
|
|
StandardError=file:/var/log/pandora/web_socket.log
|
2019-10-23 15:23:21 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
Alias=websocket.service
|