Go Back   The Palace Avatar Chat Community Forums. > Palace Builders Palace Users > Palace Builders

Palace Builders
This forum is for people who have any questions regarding Palace Building, room graphics or sounds.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-25-2009, 11:36 PM
Palace User
 
Join Date: Mar 2009
Posts: 4
Rep Power: 0
Hondo is on a distinguished road
PServer Startup Scripts and AJAX issue.

CLIENT SIDE: I have an AJAX script that activates a DirectAdmin plugin which starts or stops the Palace Server. The AJAX script awaits a response and displays the status of the Palace Server, whether the server is started or stopped.

SERVER SIDE: I have a DirectAdmin plugin with the Palace Server start-plugin and stop-palace scripts merged. The plugin starts or stops the Palace Server based on the existence of the pserver.pid file.

THE ISSUE: The script works perfect when stopping the Palace Server, it stops the server and returns status to the AJAX script, which in turn displays the server has been stopped. When you start the palace server, the server starts, but the status does not display.

The AJAX script receives the status, but you have to manually refresh the page to display the status.

THOUGHTS: My thought is the status hangs between the server and client sides as a result of when the Palace Server is backgrounded. I am drawing the conclusion based on running 'ps' for the user who is running the Palace server, which displays the plugin as <defunct>(PID, TTY, TIME are not actual, just for illustration purposes):

PID TTY TIME CMD
12345 ? 12:34:56 start-stop.raw<defunct>
23456 ? 23:45:67 pserver
34567 ? 34:56:78 psfront
45678 ? 45:67:89 psfront

QUESTION: Is there anything else in the start/stop script that could be causing the response to hang; if so how do I resolve it? Or is it a result of the script backgrounding the pserver and placing an echo statement (the response) afterwards.

I can post the code if needed. Any thoughts or help are greatly appreciated; thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 03-25-2009, 11:39 PM
Palace Helper
 
Join Date: Mar 2009
Posts: 33
Rep Power: 0
Drake is on a distinguished road
Download, try and read the Pserver Scripts on my website:
http://palacesec.freehostia.com/

This will help you...

Last edited by Drake; 07-22-2009 at 08:49 AM. Reason: Update Website Address
Reply With Quote
  #3 (permalink)  
Old 03-26-2009, 12:13 AM
Palace User
 
Join Date: Mar 2009
Posts: 4
Rep Power: 0
Hondo is on a distinguished road
Thank you Drake for your post.

The plugin for DirectAdmin allows a palace owner to consciously start or stop the Palace Server for maintenance purposes, etc. What I was attempting to achieve was a visible cue that the server indeed had started or the server had indeed stopped. The visible cue for the server stopping shows on the interface, but the cue that the server has started only shows if you manually refresh the interface(web page).

By the way, those are great scripts and very handy ones.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Two PServer Problems CountryMe Palace Builders 5 02-26-2009 01:03 AM
Avatar issue? lilmagill User Questions 2 12-14-2008 03:32 PM
Oh not another connecting issue!! chicpalace Palace Builders 2 05-31-2007 02:59 AM
The Palace CPU Usage Issue i3randiz User Questions 4 06-18-2004 10:21 PM
Help with PServer on Dsl ShellGirl63 User Questions 6 02-17-2004 12:47 AM

The Latest Posts
Title, Username, & Date Last Post Forum
download
03-21-2011 11:20 AM
by maarten
User Questions
Palace for Mac OS 10.6?
03-13-2011 09:39 AM
by pawnipt
User Questions
Server
03-07-2011 04:52 PM
by satinrose
User Questions
Return room Script
02-24-2011 12:07 AM
by jaela
Room Scripts
Releasing source code
02-17-2011 09:19 AM
by Sman™
Developers Forum
Website spammers
01-26-2011 08:48 PM
by maarten
The Planet: Palace News
Online Users: 71
0 members and 71 guests
No Members online
Most users ever online was 1,010, 06-27-2007 at 11:45 PM.
Stats
Members: 5,112
Threads: 1,141
Posts: 4,004
Top Poster: maarten (1,169)
Welcome to our newest member, cliffymayers


All times are GMT +2. The time now is 01:38 PM.


Powered by vBulletin
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0