obiz.rc fedora 7

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

obiz.rc fedora 7

BJ Freeman
# If root is running this script, su to $OFBIZ_USER first
if [ "$UID" = "0" ]; then
    exec su - $OFBIZ_USER -c "$0 $1"
fi

I am using a command line thru web admin
/etc/rc.d/init.d/ofbiz restart
as root.
getting permission denied. on the
-c "$0 $1"
any linux gurus know what might cause this.
Reply | Threaded
Open this post in threaded view
|

Re: obiz.rc fedora 7

Krzysztof Podejma
does ofbiz user has permision to run $0 ?? I think he hasn't.
so chown -R ofbiz.users <your ofbiz directory> and try again

Krzysztof Podejma

2007/6/28, BJ Freeman <[hidden email]>:

>
> # If root is running this script, su to $OFBIZ_USER first
> if [ "$UID" = "0" ]; then
>     exec su - $OFBIZ_USER -c "$0 $1"
> fi
>
> I am using a command line thru web admin
> /etc/rc.d/init.d/ofbiz restart
> as root.
> getting permission denied. on the
> -c "$0 $1"
> any linux gurus know what might cause this.
>
Reply | Threaded
Open this post in threaded view
|

Re: obiz.rc fedora 7

BJ Freeman
I checked all directories, both user and group are ofbiz


Krzysztof Podejma sent the following on 6/28/2007 8:35 AM:

> does ofbiz user has permision to run $0 ?? I think he hasn't.
> so chown -R ofbiz.users <your ofbiz directory> and try again
>
> Krzysztof Podejma
>
> 2007/6/28, BJ Freeman <[hidden email]>:
>>
>> # If root is running this script, su to $OFBIZ_USER first
>> if [ "$UID" = "0" ]; then
>>     exec su - $OFBIZ_USER -c "$0 $1"
>> fi
>>
>> I am using a command line thru web admin
>> /etc/rc.d/init.d/ofbiz restart
>> as root.
>> getting permission denied. on the
>> -c "$0 $1"
>> any linux gurus know what might cause this.
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: obiz.rc fedora 7

Shi Jinghai
if [ "$UID" != "0" ]; then
     exec su - $OFBIZ_USER -c "$0 $1"
fi


Reply | Threaded
Open this post in threaded view
|

Re: obiz.rc fedora 7

rajsaini
In reply to this post by BJ Freeman
Check if $0 binary/script has executable  permission set. You can set
the exe permission with chmod +x <filename>

thanks,

Raj
BJ Freeman wrote:

> # If root is running this script, su to $OFBIZ_USER first
> if [ "$UID" = "0" ]; then
>     exec su - $OFBIZ_USER -c "$0 $1"
> fi
>
> I am using a command line thru web admin
> /etc/rc.d/init.d/ofbiz restart
> as root.
> getting permission denied. on the
> -c "$0 $1"
> any linux gurus know what might cause this.
>
>  

Reply | Threaded
Open this post in threaded view
|

Re: obiz.rc fedora 7

BJ Freeman
have RWE for ofbiz user for /etc/rc.d/init.d/ofbiz

Raj Saini sent the following on 6/28/2007 9:50 AM:

> Check if $0 binary/script has executable  permission set. You can set
> the exe permission with chmod +x <filename>
>
> thanks,
>
> Raj
> BJ Freeman wrote:
>> # If root is running this script, su to $OFBIZ_USER first
>> if [ "$UID" = "0" ]; then
>>     exec su - $OFBIZ_USER -c "$0 $1"
>> fi
>>
>> I am using a command line thru web admin
>> /etc/rc.d/init.d/ofbiz restart
>> as root.
>> getting permission denied. on the
>> -c "$0 $1"
>> any linux gurus know what might cause this.
>>
>>  
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: obiz.rc fedora 7

Krzysztof Podejma
so works or not? maybe you don't have permission to start init.d script with
your user?

2007/6/28, BJ Freeman <[hidden email]>:

>
> have RWE for ofbiz user for /etc/rc.d/init.d/ofbiz
>
> Raj Saini sent the following on 6/28/2007 9:50 AM:
> > Check if $0 binary/script has executable  permission set. You can set
> > the exe permission with chmod +x <filename>
> >
> > thanks,
> >
> > Raj
> > BJ Freeman wrote:
> >> # If root is running this script, su to $OFBIZ_USER first
> >> if [ "$UID" = "0" ]; then
> >>     exec su - $OFBIZ_USER -c "$0 $1"
> >> fi
> >>
> >> I am using a command line thru web admin
> >> /etc/rc.d/init.d/ofbiz restart
> >> as root.
> >> getting permission denied. on the
> >> -c "$0 $1"
> >> any linux gurus know what might cause this.
> >>
> >>
> >
> >
> >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: obiz.rc fedora 7

BJ Freeman
been following these instructions
http://docs.ofbiz.org/display/OFBIZ/How+to+run+OFBiz+as+a+Service

Krzysztof Podejma sent the following on 6/28/2007 12:55 PM:

> so works or not? maybe you don't have permission to start init.d script
> with
> your user?
>
> 2007/6/28, BJ Freeman <[hidden email]>:
>>
>> have RWE for ofbiz user for /etc/rc.d/init.d/ofbiz
>>
>> Raj Saini sent the following on 6/28/2007 9:50 AM:
>> > Check if $0 binary/script has executable  permission set. You can set
>> > the exe permission with chmod +x <filename>
>> >
>> > thanks,
>> >
>> > Raj
>> > BJ Freeman wrote:
>> >> # If root is running this script, su to $OFBIZ_USER first
>> >> if [ "$UID" = "0" ]; then
>> >>     exec su - $OFBIZ_USER -c "$0 $1"
>> >> fi
>> >>
>> >> I am using a command line thru web admin
>> >> /etc/rc.d/init.d/ofbiz restart
>> >> as root.
>> >> getting permission denied. on the
>> >> -c "$0 $1"
>> >> any linux gurus know what might cause this.
>> >>
>> >>
>> >
>> >
>> >
>> >
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: obiz.rc fedora 7

Krzysztof Podejma
sorry I use openSUSE 10.2 and know nothing about specifics of Fedora
AFAIK not all users can use /etc/init.d/* scripts try to run it from root
and check process if it is ofbiz not root

2007/6/28, BJ Freeman <[hidden email]>:

>
> been following these instructions
> http://docs.ofbiz.org/display/OFBIZ/How+to+run+OFBiz+as+a+Service
>
> Krzysztof Podejma sent the following on 6/28/2007 12:55 PM:
> > so works or not? maybe you don't have permission to start init.d script
> > with
> > your user?
> >
> > 2007/6/28, BJ Freeman <[hidden email]>:
> >>
> >> have RWE for ofbiz user for /etc/rc.d/init.d/ofbiz
> >>
> >> Raj Saini sent the following on 6/28/2007 9:50 AM:
> >> > Check if $0 binary/script has executable  permission set. You can set
> >> > the exe permission with chmod +x <filename>
> >> >
> >> > thanks,
> >> >
> >> > Raj
> >> > BJ Freeman wrote:
> >> >> # If root is running this script, su to $OFBIZ_USER first
> >> >> if [ "$UID" = "0" ]; then
> >> >>     exec su - $OFBIZ_USER -c "$0 $1"
> >> >> fi
> >> >>
> >> >> I am using a command line thru web admin
> >> >> /etc/rc.d/init.d/ofbiz restart
> >> >> as root.
> >> >> getting permission denied. on the
> >> >> -c "$0 $1"
> >> >> any linux gurus know what might cause this.
> >> >>
> >> >>
> >> >
> >> >
> >> >
> >> >
> >>
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: obiz.rc fedora 7

BJ Freeman
thanks that got me to the next level of problems
I added the user ofbiz with RE.


Krzysztof Podejma sent the following on 6/28/2007 2:43 PM:

> sorry I use openSUSE 10.2 and know nothing about specifics of Fedora
> AFAIK not all users can use /etc/init.d/* scripts try to run it from root
> and check process if it is ofbiz not root
>
> 2007/6/28, BJ Freeman <[hidden email]>:
>>
>> been following these instructions
>> http://docs.ofbiz.org/display/OFBIZ/How+to+run+OFBiz+as+a+Service
>>
>> Krzysztof Podejma sent the following on 6/28/2007 12:55 PM:
>> > so works or not? maybe you don't have permission to start init.d script
>> > with
>> > your user?
>> >
>> > 2007/6/28, BJ Freeman <[hidden email]>:
>> >>
>> >> have RWE for ofbiz user for /etc/rc.d/init.d/ofbiz
>> >>
>> >> Raj Saini sent the following on 6/28/2007 9:50 AM:
>> >> > Check if $0 binary/script has executable  permission set. You can
>> set
>> >> > the exe permission with chmod +x <filename>
>> >> >
>> >> > thanks,
>> >> >
>> >> > Raj
>> >> > BJ Freeman wrote:
>> >> >> # If root is running this script, su to $OFBIZ_USER first
>> >> >> if [ "$UID" = "0" ]; then
>> >> >>     exec su - $OFBIZ_USER -c "$0 $1"
>> >> >> fi
>> >> >>
>> >> >> I am using a command line thru web admin
>> >> >> /etc/rc.d/init.d/ofbiz restart
>> >> >> as root.
>> >> >> getting permission denied. on the
>> >> >> -c "$0 $1"
>> >> >> any linux gurus know what might cause this.
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> >
>> >>
>> >
>>
>
Reply | Threaded
Open this post in threaded view
|

Does OfBiz support Ajax?

Mathius Allo
Hi,
   
  Is there any example how ajax usage in OfBiz? I have searched the Forum but I can't find any solid information that ajax can be used in OfBiz without any problem.
   
  Does anyone have any useful info on this?
   
  Thanks in advanced.
   
  Mathius

       
---------------------------------
Boardwalk for $500? In 2007? Ha!
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
Reply | Threaded
Open this post in threaded view
|

Re: Does OfBiz support Ajax?

cjhowe
AJAX is a pretty broad term.  What is it that you're trying to do?

--- Mathius Allo <[hidden email]> wrote:

> Hi,
>    
>   Is there any example how ajax usage in OfBiz? I have searched the
> Forum but I can't find any solid information that ajax can be used in
> OfBiz without any problem.
>    
>   Does anyone have any useful info on this?
>    
>   Thanks in advanced.
>    
>   Mathius
>
>        
> ---------------------------------
> Boardwalk for $500? In 2007? Ha!
> Play Monopoly Here and Now (it's updated for today's economy) at
> Yahoo! Games.

Reply | Threaded
Open this post in threaded view
|

Re: Does OfBiz support Ajax?

Rodrigo Lima-2
In reply to this post by Mathius Allo
Hi,
       
YES! The OfBIZ is prepared for Ajax , in the truth, it can create
exits XML with incredible easiness. We implement here of two forms in
the Brazil:
1 - We create a Handler XML, where we return the MAP from the services.
2 - We create a service, where freemarker render the data with exit of
type XML. after this, is enough to use the API´s Ajax XMLHttpRequest
() of preferred browser.


2007/6/29, Mathius Allo <[hidden email]>:

> Hi,
>
>  Is there any example how ajax usage in OfBiz? I have searched the Forum but I can't find any solid information that ajax can be used in OfBiz without any problem.
>
>  Does anyone have any useful info on this?
>
>  Thanks in advanced.
>
>  Mathius
>
>
> ---------------------------------
> Boardwalk for $500? In 2007? Ha!
> Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
Reply | Threaded
Open this post in threaded view
|

Re: Does OfBiz support Ajax?

Mathius Allo
In reply to this post by cjhowe
Hi Chris,
   
  I would like to refresh certain part of my screen such as dropdown in the background. User should not be aware that the screen has been refreshed.
   
   
  Regards,
  Mathius Allo
 
Chris Howe <[hidden email]> wrote:
  AJAX is a pretty broad term. What is it that you're trying to do?

--- Mathius Allo wrote:

> Hi,
>
> Is there any example how ajax usage in OfBiz? I have searched the
> Forum but I can't find any solid information that ajax can be used in
> OfBiz without any problem.
>
> Does anyone have any useful info on this?
>
> Thanks in advanced.
>
> Mathius
>
>
> ---------------------------------
> Boardwalk for $500? In 2007? Ha!
> Play Monopoly Here and Now (it's updated for today's economy) at
> Yahoo! Games.



       
---------------------------------
Need a vacation? Get great deals to amazing places on Yahoo! Travel.
Reply | Threaded
Open this post in threaded view
|

Re: Does OfBiz support Ajax?

Mathius Allo
In reply to this post by Rodrigo Lima-2
Hi Rodrigo,
   
  Thanks for your feedback.

  Do you have an example on how to implement it? Currently, I would like to refresh the content of certain part of the screen (such as dropdown) in the background.
   
   
  Best regards,
  Mathius Allo
 
Rodrigo Souza <[hidden email]> wrote:
  Hi,

YES! The OfBIZ is prepared for Ajax , in the truth, it can create
exits XML with incredible easiness. We implement here of two forms in
the Brazil:
1 - We create a Handler XML, where we return the MAP from the services.
2 - We create a service, where freemarker render the data with exit of
type XML. after this, is enough to use the API´s Ajax XMLHttpRequest
() of preferred browser.


2007/6/29, Mathius Allo :

> Hi,
>
> Is there any example how ajax usage in OfBiz? I have searched the Forum but I can't find any solid information that ajax can be used in OfBiz without any problem.
>
> Does anyone have any useful info on this?
>
> Thanks in advanced.
>
> Mathius
>
>
> ---------------------------------
> Boardwalk for $500? In 2007? Ha!
> Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.


 
---------------------------------
 Get your own web address.
 Have a HUGE year through Yahoo! Small Business.
Reply | Threaded
Open this post in threaded view
|

Re: Does OfBiz support Ajax?

Rodrigo Lima-2
update the application controller.

create you controler.
create a .ftl file, out to XML type.
Generate a service to your business logic.

Our, purchase or create de API Handlers, and get results without FreeMarker.

You it is a developer?



2007/6/30, Mathius Allo <[hidden email]>:

> Hi Rodrigo,
>
>  Thanks for your feedback.
>
>  Do you have an example on how to implement it? Currently, I would like to refresh the content of certain part of the screen (such as dropdown) in the background.
>
>
>  Best regards,
>  Mathius Allo
>
> Rodrigo Souza <[hidden email]> wrote:
>  Hi,
>
> YES! The OfBIZ is prepared for Ajax , in the truth, it can create
> exits XML with incredible easiness. We implement here of two forms in
> the Brazil:
> 1 - We create a Handler XML, where we return the MAP from the services.
> 2 - We create a service, where freemarker render the data with exit of
> type XML. after this, is enough to use the API´s Ajax XMLHttpRequest
> () of preferred browser.
>
>
> 2007/6/29, Mathius Allo :
> > Hi,
> >
> > Is there any example how ajax usage in OfBiz? I have searched the Forum but I can't find any solid information that ajax can be used in OfBiz without any problem.
> >
> > Does anyone have any useful info on this?
> >
> > Thanks in advanced.
> >
> > Mathius
> >
> >
> > ---------------------------------
> > Boardwalk for $500? In 2007? Ha!
> > Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
>
>
>
> ---------------------------------
>  Get your own web address.
>  Have a HUGE year through Yahoo! Small Business.
Reply | Threaded
Open this post in threaded view
|

Re: Does OfBiz support Ajax?

Rodrigo Lima-2
It forgives, some errors in the English, i'm brazilian :D

update the application controller.

create you controler.
create a .ftl file, out to XML type.
Generate a service to your business logic.

Or, purchase or create the API Handlers, and get results without FreeMarker.

You it is a developer?

2007/6/30, Rodrigo Souza <[hidden email]>:

> update the application controller.
>
> create you controler.
> create a .ftl file, out to XML type.
> Generate a service to your business logic.
>
> Our, purchase or create de API Handlers, and get results without FreeMarker.
>
> You it is a developer?
>
>
>
> 2007/6/30, Mathius Allo <[hidden email]>:
> > Hi Rodrigo,
> >
> >  Thanks for your feedback.
> >
> >  Do you have an example on how to implement it? Currently, I would like to refresh the content of certain part of the screen (such as dropdown) in the background.
> >
> >
> >  Best regards,
> >  Mathius Allo
> >
> > Rodrigo Souza <[hidden email]> wrote:
> >  Hi,
> >
> > YES! The OfBIZ is prepared for Ajax , in the truth, it can create
> > exits XML with incredible easiness. We implement here of two forms in
> > the Brazil:
> > 1 - We create a Handler XML, where we return the MAP from the services.
> > 2 - We create a service, where freemarker render the data with exit of
> > type XML. after this, is enough to use the API´s Ajax XMLHttpRequest
> > () of preferred browser.
> >
> >
> > 2007/6/29, Mathius Allo :
> > > Hi,
> > >
> > > Is there any example how ajax usage in OfBiz? I have searched the Forum but I can't find any solid information that ajax can be used in OfBiz without any problem.
> > >
> > > Does anyone have any useful info on this?
> > >
> > > Thanks in advanced.
> > >
> > > Mathius
> > >
> > >
> > > ---------------------------------
> > > Boardwalk for $500? In 2007? Ha!
> > > Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
> >
> >
> >
> > ---------------------------------
> >  Get your own web address.
> >  Have a HUGE year through Yahoo! Small Business.
>