This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# | |
# This file is part of REANA. | |
# Copyright (C) 2017 CERN. | |
# | |
# REANA is free software; you can redistribute it and/or modify it under the | |
# terms of the GNU General Public License as published by the Free Software | |
# Foundation; either version 2 of the License, or (at your option) any later | |
# version. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A simple script to check if a process is running and if it is will | |
# kill and restart the process | |
# Modified from example provided at: | |
# https://www.m00nie.com/2011/12/script-to-check-if-a-process-is-running-and-if-not-start-it/ | |
################################################ | |
# The name of the program to check | |
PROGRAM=locate-pointer | |
################################################ |