![]() |
2012-07-04
, 19:55
|
Posts: 1,320 |
Thanked: 915 times |
Joined on Feb 2010
|
#2
|
#!/bin/sh #set -x # # Variables Section #============================================================== # list process to monitor in the variable below. #{wazapp} /usr/bin/python /opt/waxmppplugin/bin/wazapp/ PROGRAM1="wazapp" #lists pid of that process PID1=$(pidof $PROGRAM1) # # #================================================================== # The ‘if’ statement below checks to see if the process is running # with the ‘ps’ command. If the value is returned as a ’0' then # an email will be sent and the process will be safely restarted. # if [ $PID1 = '' ]; then /opt/waxmppplugin/bin/wazapp/wazapp else echo 'Wazapp is running' fi exit
![]() |
2012-07-04
, 21:13
|
Posts: 1,320 |
Thanked: 915 times |
Joined on Feb 2010
|
#3
|
![]() |
2012-07-04
, 21:21
|
Posts: 180 |
Thanked: 79 times |
Joined on Mar 2012
|
#4
|
![]() |
2012-07-04
, 22:38
|
Posts: 1,320 |
Thanked: 915 times |
Joined on Feb 2010
|
#5
|
cp /home/user/MyDocs/wazapp.sh /home/user/ cp /home/user/MyDocs/waxmppplugin.desktop /usr/share/applications/ chmod 755 /home/user/wazapp.sh chmod 644 /usr/share/applications/waxmppplugin.desktop
![]() |
2012-07-05
, 15:35
|
|
Posts: 1,389 |
Thanked: 1,857 times |
Joined on Feb 2010
@ Israel
|
#6
|
End result script works great here are the two scripts created from this idea!
Scipt 1 (VogG)
Script 2 (Doc_Scrutinizer)
If script 2 is place in /home/user/ and saved as wazapp.sh then using this .desktop file to replace the default one for Wazapp, you can achieve a Wazapp that will restart itself if it errors for any reason
If you Quit the app yourself, it will not restart until you do it manually
Custom Wazapp.desktop
The Following 2 Users Say Thank You to ZogG For This Useful Post: | ||
![]() |
2012-07-05
, 19:03
|
Posts: 98 |
Thanked: 20 times |
Joined on Jan 2012
|
#7
|
![]() |
2012-07-05
, 19:36
|
Posts: 1,320 |
Thanked: 915 times |
Joined on Feb 2010
|
#8
|
ok i used only script 2 and the new desktop file but wazapp wont load, any clue?
![]() |
2012-07-05
, 19:37
|
Posts: 1,320 |
Thanked: 915 times |
Joined on Feb 2010
|
#9
|
![]() |
2012-07-05
, 20:06
|
Posts: 98 |
Thanked: 20 times |
Joined on Jan 2012
|
#10
|
Did you put the script in /hom/user/ and name it wazapp.sh
and put the .desktop file in /usr/share/applications/
I suffer from alot of random Wazapp crashes due to either signal loss or just PSM interfering.
For the moment I came up with a solution to missing messages due to a crash.
I want to make a script and then have it run every 30 mins or so to check if Wazapp is running and if it isn't restart it.
Here is what I have so far but there are errors I can't seem to solve, hoping you guys can help correct this
EDIT: This is the latest version that works!
http://www.savelono.com/linux/bash-a...s-running.html
Well Nokia do at least know how to build a decent phone, just apparently don't know how to support it..
N900 Died
My Contributions
N900 Conversations Wiki Page
Last edited by godofwar424; 2012-07-05 at 21:37.