Remote server management:

added pshelper

    - script to find out whether a daemon is running on a remote server

    - ran via ssh by the server status page

    - returns the process line returned by 'ps ww pid' or 'false'

    - inefficient over long distances, as a new ssh connection is required
      for every daemon
This commit is contained in:
Bernd Machenschalk 2012-12-03 10:12:32 +00:00 committed by Bernd Machenschalk
parent 71a63c8bc7
commit 7b33ef1b0c
1 changed files with 3 additions and 0 deletions

3
sched/pshelper Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
pid=`cat "$1"` &&
ps ww $pid | grep "^ *\($pid\) " || echo false