Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a bunch of Java programs/shellscripts that needs to be manually started every now and then (mostly in the mornings), and stopped every evening (same there). I would like a possibility to start the scripts via a web-interface. Would also like to be able to look at logs.

Can I do that with a standard Ubuntu installation, or do I need some 3rd party tools?

-- edit --

I understand that the UN*X WAY is to do this with crontab etc. Also that writing a simple controller that could start/stop processes via a web interface isnt that big of a thing.

I just wondered whether there existed some kind of process monitor framework, that could start/stop/restart processes, maybe deal with dependencies (if this process crashes, that one must be restarted). All together with a neat Web interface (together with headless control possibilities of course).

Such a tool/framework could offload a lot of basic work to "simple users".

Rundeck seems promising, but maybe I was looking for something more customizable.

share|improve this question
    
Why not schedule them with a crontab and a timeout? –  Elliott Frisch Apr 23 at 12:57
    
Because I said in the question I want to start and stop them manually. It would be good if course to have some scheduled starts/stops too, but I need to have the manual control. And I want it to be easy to understand even for a non-tech user. Plus, would be super if one could check the logfile for each process too in some way. –  Peter Andersson Apr 23 at 14:12
    
Sounds like you're going to be writing some custom software to me. Ubuntu has web servers available in the repositories. As for your "admin interface", there are some (like say webmin) but I don't think it has the capabilities you're requesting (especially "easy to understand even for a non-tech user"). –  Elliott Frisch Apr 23 at 14:15

2 Answers 2

You can use Rundeck for this. It's a stand-alone Java process which can be accessed through a webbrowser. The admin can specify jobs which wil run either a command or a script. A user can then run the job (optionally with parameters).

Output will be sent back to the browser. There is also logging of past-run jobs.

Here is a screenshot from the manual, using jobs: enter image description here

Editing jobs:

enter image description here

share|improve this answer
    
Looks interesting and I have installed it for review, however it feels a little bit like using a Destroyer to sink a rowing boat. It features the possibility to run a command on multiple targets which is nice though, however not applicable in this particular case. –  Peter Andersson Apr 25 at 17:09
    
I have found supervisor (supervisord.org). How would you say this compares to RunDeck? –  Peter Andersson Apr 25 at 20:46
    
@PeterAndersson supervisord seems more like a tool to run jobs automatically. Rundeck is made to be used manually by n00b users. –  mtak Jun 12 at 9:28

There are a variety of web based terminal emulators out there. I used one in the past, but forgot which one it was.

Check out this Google Search for a list of them.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.