Ajax Based Services Status in Unix

S

SSS Develop

Hello,

Looking for web application, written in Perl - which help me manage
services/applications in Linux Server.

How difficult is develop such application Perl which has buttons
"Start" (if service is off), "Stop"(if service is on), "Restart" (if
service is on) services. The status etc should be fetched using Ajax
calls.


Any help in this regard will be of great help.

thank you,

sss
 
R

r.mariotti

Hello,

Looking for web application, written in Perl - which help me manage
services/applications in Linux Server.

How difficult is develop such application Perl which has buttons
"Start" (if service is off), "Stop"(if service is on), "Restart" (if
service is on) services. The status etc should be fetched using Ajax
calls.


Any help in this regard will be of great help.

thank you,

sss


Take a look at www.webmin.com and you'll find what you are looking for
(written in perl).
 
S

SSS Develop

Take a look atwww.webmin.comand you'll find what you are looking for
(written in perl).

Thank you. I am aware of webmin - that will be overkill solution.
What i was looking for is very simple - any way, exploring Mojolicious
to develop such solution.

It will be great help if i get ideas - on architect such product

thank you,
 
R

RedGrittyBrick

Thank you. I am aware of webmin - that will be overkill solution.
What i was looking for is very simple - any way, exploring Mojolicious
to develop such solution.

It will be great help if i get ideas - on architect such product

0) Divide task: GUI, others. Consider Model-View-Controller pattern.
1) Choose a GUI tool (Tk?).
2) Choose "Ajax" tool - You probably just need HTTP client.
3) Write code.
4) If errors: post code, questions & error messages here.
 
P

Peter Makholm

SSS Develop said:
How difficult is develop such application Perl which has buttons
"Start" (if service is off), "Stop"(if service is on), "Restart" (if
service is on) services. The status etc should be fetched using Ajax
calls.

Start by writing a command line tool which list the services and their
status. Depending on your distribution this tool can be everything from
trivial to quite hard to write.

Having written the above tool yourself it should be trivial to turn into
a simple ajax service. Do it nice and it might take you half an day from
scratch. Any of the simple web frameworks should do, even a plain PSGI
application.

Then you need some frontend code. It doesn't sound too complex, but I
have always just outsourced that to my web developer colleagues. But
depending on how flashy you want it, it should take more than a few
hours.

This will solve the problem at hand, but not be the most flexible
furture proof solution. Using some of the existing webbased tools for
managing serveres might be wiser over time.

The main problem is that the hard part is tied to you distribution and
it might need to be rewritten to support other unices and even to
support some furture version of your chosen distribution (unless you
want to maintain a legacy init system too). Using one of the existing
flexible solutions with lots of other users would lessen this furture
work.

//Makholm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top