Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Restart Plack script

by ikegami (Patriarch)
on Nov 08, 2011 at 22:17 UTC ( [id://936896]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Restart Plack script
in thread Reaped: Restart Plack script

I didn't say "It won't restart Plack if it has not been started."

I didn't say "It won't restart Plack if it has never been started."

I said "It won't restart Plack if it's not currently running."

Restarting plack if it's not currently running is easy:

plackup -s Starman -r action.psgi -R /etc/perl,/var/www -p 80 -D

Replies are listed 'Best First'.
Re^4: Restart Plack script
by Anonymous Monk on Nov 08, 2011 at 23:48 UTC

    You cannot REstart something that is not already running for the same reason that you can't REboot a computer which is switched off, nor REsurrect, someone who hasn't been born yet.

    The very term itself, implies the act of causing cessation then restoring it.

    You can't REsume a journey you have not yet started!

    You can't REheat, food which has not yet been cooked!

    You can't REstore from backup if you haven't backed up yet.

      The very term itself, implies the act of causing cessation then restoring it.

      You own examples prove this is wrong.

      Resuming a journey doesn't mean stopping it then starting it. An activity must already have been stopped in order to resume it.

      Reheating food doesn't mean to stop heating it then heating it. Something must no longer be hot in order to reheat it.

      That's cause "re-" usually means "again". Heat again. Journey again. Start again. (Dictionary says "1. Once more; afresh; anew 2. With return to a previous state 3. In return; mutually ") I agree that proper usage often requires a certain state to exist (e.g. reboot requires the computer to be running), but there is quite a variety of precondition states.

      If an application crashes (and thus no longer running), one can restart it to continue working in it. Therehore, one can indeed restart an application that is not running. (You can restart an exercise regime you abandoned. You can restart school after a break.)

      It really doesn't matter what restart means, though;

      It's obvious that someone that uses restart_plack wants to leave the computer in a state where plack is running, and the provided script did not do that.

        That's why it was called REstart, as in; kill the existing running process and start another one.

        The OTHER script called start_plack starts plack, and guess what the kill_plack one kills it.

        Your just trying to create and win an argument, presumably because your butthurt that you couldn't get aXML to compile and you feel like I've made you look a fool. Well too bad, I gave you adequet instructions to get it working and you chose to ignore them in favour of trying to make me look a fool by saying my code doesn't work when actually it does. Your mistake, you deal with it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://936896]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-25 13:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found