Hello Sebastian,

I was afraid of the answer like this :)
Totally agree about potential risk of this change (for aaaall applications
already written), pretty core change. As you know Mojolicious much better
than I am, then I just answer to your question and defer this decision to
you.

*As for the Reasons:*

My intention is to have ability to track the name of the script inside of
Mojo app.
This ability will allow to us to make webapps similar to busybox binary (if
you are aware what is it). The same idea used a lot in *nix world. As I
already said Gentoo linux use this idea for the init script.

e.g. busyxbox
If you create symbolic link to the busybox with the name "ls" it will
behave like "ls" command:
% mkdir 1
% cd 1
% ln -s $(which busybox) ls
% ./ls -l
total 4
lrwxrwxrwx    1 cono     cono            12 Apr  6 02:11 ls -> /bin/busybox

e.g. mongodb on gentoo:
% ls -l /etc/init.d/mongodb*
-rwxr-xr-x 1 root root 767 Mar 17 15:43 /etc/init.d/mongodb*
lrwxrwxrwx 1 root root   7 Oct  9  2013 /etc/init.d/mongodb-cfg -> mongodb*

% ls -l /etc/conf.d/mongodb*
-rw-r--r-- 1 root root 549 Mar 17 15:43 /etc/conf.d/mongodb
-rw-r--r-- 1 root root 434 Oct  9  2013 /etc/conf.d/mongodb-cfg

So I can run two instances of the mongodb at the same time with the
different configs.

*As for the Portability:*
I quickly looked to the File::Spec::* modules and I see overrides in Mac,
VMS, Unix, OS2 so I making decision its working fine. Dunno if the default
behavior (defined in base class) works on other OS like Windows.
But as I can see Windows is not a big deal :)
Mojo::Server::Hypnotoad:
# No Windows support
  _exit('Hypnotoad is not available for Windows.') if $^O eq 'MSWin32';



On Mon, Apr 6, 2015 at 1:43 AM, sri <[email protected]> wrote:

> So my question is: Is there an intention to use abs_path here instead of
>> File::Spec->rel2abs?
>> May I expect that Mojo::Server to be patched?
>>
>
> I don't believe there was a specific reason, but it has been
> (successfully) like this for many years now, and this is notoriously hard
> to test code. So there will certainly be resistance to just changing it,
> unless there's a very good explanation for why it has to be done, and why
> it won't cause any portability issues.
>
> --
> sebastian
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Mojolicious" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/mojolicious/OQEH0Aisouo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/mojolicious.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Varyanick I. Alex
skype: cono..
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to