Jan-Henrik Haukeland wrote:
> 
> On 12. jan. 2007, at 22.26, gabev wrote:
> 
>> nohup $CM 1>$LOG_FILE 2>&1 &
>> echo $! > /tmp/sylpheed.pid
> 
> The problem is that the application is put in the background with the  
> last '&' in the first line. So the pid you save is the pid of the  
> shell, that is, not the pid of the program. You should write this as:
> 
> echo $$ > /tmp/sylpheed.pid
> exec 2>&1 $CM 1>$LOG_FILE
> 
> Best regards
> --
> Jan-Henrik Haukeland
> http://tildeslash.com/
> 
> 
> 
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general
> 
> 

Hi Jan-Henrik

I replaced the lines but still is no go.


I believe is a permission problem ; in that chain , monit ,which calls the
wrapper (sylph as I name it) , which in turn calls the program
sylpheed-claws , the permissions gets screwed somehow;
i guess i have to look deeper.




-- 
View this message in context: 
http://www.nabble.com/permision-problem--tf2968406.html#a8311312
Sent from the monit-general mailing list archive at Nabble.com.



--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to