I'm really new to shell scripting...painfully new...i've managed to do some simple stuff but i'm having a slight problem with this one....
I have a cronjob that starts a program at reboot and i want to make another cronjob to check to see if that one is running and restart it if it's not. I need this to work on multiple user too.
This program doesn't create a pid when it is started so i'm thinking i should write a script to start it and create a pid. I need it to do this based on user name so it doesn't get confused....or to put the pid in the users home directory or SOMETHING.....I'm stuck and can't find a lot of resources for my problem....any help would be appreciated.
I have a cronjob that starts a program at reboot and i want to make another cronjob to check to see if that one is running and restart it if it's not. I need this to work on multiple user too.
This program doesn't create a pid when it is started so i'm thinking i should write a script to start it and create a pid. I need it to do this based on user name so it doesn't get confused....or to put the pid in the users home directory or SOMETHING.....I'm stuck and can't find a lot of resources for my problem....any help would be appreciated.