start stop linux services with php ?

Discussion in 'Programming/Scripts' started by gavino, May 23, 2007.

  1. gavino

    gavino New Member

    Does anyone know how to restart a linux service from a winxp machine. At the moment I go to my Fedora Core (FC6) linux server with the Falko LAMP and as root I type:

    #service bplogin restart

    I want to do it remotely from a windows xp machine which is on the same network. The reason is that something kills my internet access a couple of times a day, it used to only happen once a month but now getting worse, and until i find out why, a php solution would be good, espaeciallty for staff to reset the service when I am not here.

    Last edited: May 23, 2007
  2. falko

    falko Super Moderator ISPConfig Developer

  3. gavino

    gavino New Member

    Thanks Falco I have set up Monit and its great. I am now using it to monitor apache, php and sql.

    Is there a way or a script to call telnet or ssh from WinXP and have it do the following automatically [telnet (then) su - (then) service bplogin restart
    So I can make an icon, and non tech staff could double click and it all happens?

  4. falko

    falko Super Moderator ISPConfig Developer

    This would be possible from Linux to Linux, but I don't know how to do this on Windows...
  5. gavino

    gavino New Member

    Ok thanks, thats all satisfied for me.

Share This Page