Well….

I agree with Enrico, mostly.  

Installation: Yes you need sudo privileges to write to /Library/LaunchDaemons. 
You also need sudo to write to /usr/local/… which is as far as I know, the 
current place to put system wide user programs.  I could be wrong as I haven’t 
been keeping up.

Execution: Yes, as far as I know you only need sudo for writing to 
/var/run/ooRexx.pid.  The port bound by rxapi ( 10010? ) is out of the range 
requiring sudo authority to bin.

Bruce
> On Nov 21, 2018, at 5:12 AM, Enrico Sorichetti via Oorexx-devel 
> <oorexx-devel@lists.sourceforge.net> wrote:
> 
> 
> The only reason for having sudo privileges is to install the plist into 
> /Library/LaunchDaemons
> 
> The only reason for having sudo privileges when starting by hand the rxapi 
> thing is to write /var/run/ooRexx.pid
> 
> I just run a VERY quick and dirty test changing 
> rexxapi/server/platform/unix/linux/APIService.cpp to write to /tmp/ooRexx.pid 
> 
> And at first glance everything seems to run smoothly 
> Naturally more research and test is needed but …
> it looks possible to install and use rexx without sudo privileges,
> I will research a bit more and let You know 
> 
> Cheers
> 
> Enrico
> 
> PS
> 
> The change is really simple 
> 
> In /opt/ooRexx.alt/rexxapi/server/platform/unix/linux/APIService.cpp
> 
> Just change the first 
> #define OOREXX_PIDFILE "/var/run/ooRexx.pid”
> To
> #define OOREXX_PIDFILE "/tmp/ooRexx.pid"
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel



_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to