i would suggest this.

have CF, when this restart script is ran, write a file somewhere on the 
drive (like /home/whomever/restart_cf. then simply have a cron job run 
every X number of minutes checking for the existence of the file. it it 
exists, have it run the command needed to restart CF (maybe service 
coldfuxionmx restart depending on how youre setup) and then delete that 
file.

best,

owen

Neculai Macarie wrote:

>>Dear all,
>>
>>I've been trying to give our developers the ability to restart the CF
>>service on our demo server without needing ssh or linux commands or
>>    
>>
>anything
>  
>
>>like that. Basically a secured webpage to activate a script that restarts
>>the server if they take it down for whatever reason while building code.
>>
>>I was wondering if anyone has successfully written a CF script in linux to
>>do this? I can do it on NT using <cfexecute> really easily but on linux
>>    
>>
>it's
>  
>
>>proving much more problematic.
>>
>>I've been using the "sudo" feature in linux to allow the user running the
>>    
>>
>CF
>  
>
>>service to restart the cf server but it's not working. I can make it
>>    
>>
>restart
>  
>
>>httpd  with no problem but when I try it with CF it fails :-(
>>
>>Am I being really dumb trying to do this in linux or am I missing
>>something...?
>>    
>>
>
>This is a shot in the dark, but do you have SELinux active ?
>
>  
>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:14:4012
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/14
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:14
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.14
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to