We are running OES2/SuSE. The problem is with our groupwise webaccess. From time to time it stops and we just have to restart the process. The commands are:
rcgrpwise status
rcgrpwise start
How would I create a script that would check the status and if it comes back stopped, then it would run the rcgrpwise start command.