Where communities thrive
Join over
1.5M+ people
Join over
100K+ communities
Free
without limits
Create
your own community
Explore more communities
supervisorphp/supervisor
PHP library for managing Supervisor through XML-RPC API
People
Repo info
Activity
arnaudmm
@arnaudmm
wow so nice thx
Márk Sági-Kazár
@sagikazarmark
Awesome :)
arnaudmm
@arnaudmm
Now I will display which host is unreachable :) :)
Márk Sági-Kazár
@sagikazarmark
Actually you could also catch SupervisorException I think, at least I think every exception is wrapped around it
arnaudmm
@arnaudmm
ok nice
Márk Sági-Kazár
@sagikazarmark
also, you can check if a host is available by calling
$supervisor->isConnected()
arnaudmm
@arnaudmm
oh... and so I dont call getAllProcessInfo
it it return false
better
Márk Sági-Kazár
@sagikazarmark
Yeah, probably it is
arnaudmm
@arnaudmm
thanks for hints!
Márk Sági-Kazár
@sagikazarmark
Your welcome
arnaudmm
@arnaudmm
hmmm to add a new route : public/index.php is the only file to edit ?
Márk Sági-Kazár
@sagikazarmark
Yes
At least so far
arnaudmm
@arnaudmm
I've added a route, then a method in Controller
Márk Sági-Kazár
@sagikazarmark
Proton (the micro framework I use) uses League Route
arnaudmm
@arnaudmm
and I got an error
Márk Sági-Kazár
@sagikazarmark
IIRC a new version is coming with config file support
What did you add?
arnaudmm
@arnaudmm
$app->get('/group/start/{group}', 'controller::startGroup');
and the method startGroup in my controller
Márk Sági-Kazár
@sagikazarmark
And what's the error?
arnaudmm
@arnaudmm
{"error":{"message":"Not Found","trace":["
#0
\/home\/netvibes\/monitor\/vendor\/league\/route\/src\/Dispatcher.php(61): League\Route\Dispatcher->handleNotFound()","
#1
\/home\/netvibes\/monitor\/vendor\/alexbilbie\/proton\/src\/Application.php(251): League\Route\Dispatcher->dispatch('GET', '\/errors\/status-...')","
#2
\/home\/netvibes\/monitor\/vendor\/alexbilbie\/proton\/src\/Application.php(300): Proton\Application->handle(Object(Symfony\Component\HttpFoundation\Request))","
#3
\/home\/netvibes\/monitor\/public\/index.php(38): Proton\Application->run()","
#4
{main}"]}}
not really revelant
Márk Sági-Kazár
@sagikazarmark
Actually it is
What URL are you trying?
What is the method signature?
arnaudmm
@arnaudmm
oh i got it
its about code in my metho
d
not about route
Márk Sági-Kazár
@sagikazarmark
yeah?
arnaudmm
@arnaudmm
yes, sry
Márk Sági-Kazár
@sagikazarmark
np
arnaudmm
@arnaudmm
hello
@sagikazarmark
I had a question about XML-RPC api, it seems that there is no methode tu restart a process
Do you have any idea why ?
to restart, I have to stop (and wait) then start again
dunno why they didnt implement a restart like supervisorctl restart
you fire the command and forget
Márk Sági-Kazár
@sagikazarmark
Hey
@arnaudumm
See this issue
supervisorphp/supervisor#9
Dylan Pierce
@ctrlaltdylan
Howdy, thanks for making this awesome package
There's a select few of us using supervisor with PHP but it's a huge help
Márk Sági-Kazár
@sagikazarmark
Good to hear that, thanks for the feedback
Unfortunately I didn't have the time that I wanted to spend on it in the near past
But now, that HTTPlug is out
I can spend some more time on other OSS
_