diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2016-02-27 15:58:12 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2016-02-27 15:58:12 +0100 |
commit | a307e0474e78c51590aeac95dbc5587a87ef6501 (patch) | |
tree | c5c7ca86b0b86704a4c1adc588e7ce249826e98f /packages/cern-scripts/resources/bin/restart-gwt.sh | |
parent | 77955935e9549a847ae7e0d78819f090d429fdb6 (diff) | |
download | debian-packages-a307e0474e78c51590aeac95dbc5587a87ef6501.tar.gz debian-packages-a307e0474e78c51590aeac95dbc5587a87ef6501.zip |
refactor scripts packages
Diffstat (limited to 'packages/cern-scripts/resources/bin/restart-gwt.sh')
-rwxr-xr-x | packages/cern-scripts/resources/bin/restart-gwt.sh | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/packages/cern-scripts/resources/bin/restart-gwt.sh b/packages/cern-scripts/resources/bin/restart-gwt.sh deleted file mode 100755 index 3870874..0000000 --- a/packages/cern-scripts/resources/bin/restart-gwt.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -set -x -pid=`jps | grep DevMode | cut -f 1 -d ' '` -if [ -z "$pid" ]; then - echo "no running gwt-client found" >&2 - exit 1 -fi - -cwd=`readlink "/proc/${pid}/cwd"` -cmd=`cat "/proc/${pid}/cmdline" | tr '\0' ' '` -cd "$cwd" -kill -9 "$pid" - -sleep 1 -$cmd >/dev/null 2>&1 & -disown -ar |