@@ -78,7 +78,7 @@ \subsection{Introducing procer}
78
78
expected to be the one true init, poorly documented, not maintained, and definitely not
79
79
going to work for this manual. My only choice was to shave a yak and write my own.
80
80
81
- The end result is \shell {procer}, which lives in \file {examples /procer} and does
81
+ The end result is \shell {procer}, which lives in \file {tools /procer} and does
82
82
most of what you need in a USPM. It works a lot like daemontools or minit, but
83
83
is much simpler, with these differences:
84
84
@@ -129,11 +129,11 @@ \subsection{Introducing procer}
129
129
\subsection {Installing procer }
130
130
131
131
Installing procer is very easy. It's a single little binary and it lives in
132
- \file {examples /procer} in the Mongrel2 source. Here's how you'd install it
133
- totally from scratch as if you hadn't even build Mongrel2 yet:
132
+ \file {tools /procer} in the Mongrel2 source. Here's how you'd install it
133
+ totally from scratch as if you hadn't even built Mongrel2 yet:
134
134
135
135
\begin {code }{Install procer}
136
- << d['/docs/manual/ inputs/install_procer.sh|pyg|l'] >>
136
+ << d['inputs/install_procer.sh|pyg|l'] >>
137
137
\end {code }
138
138
139
139
That's the entire install process, and now procer is in \file {/usr/local/bin}
@@ -169,7 +169,7 @@ \section{Step 1: The Deployment Area}
169
169
but feel free to change this up later if you find a better way.
170
170
171
171
\begin {code }{Make Deployment Directories}
172
- << d['/docs/manual/ inputs/make_deployment_directories.sh|pyg|l'] >>
172
+ << d['inputs/make_deployment_directories.sh|pyg|l'] >>
173
173
\end {code }
174
174
175
175
Hopefully, you're starting to see how you could easily automate this so that you don't
@@ -218,7 +218,7 @@ \section{Step 2: The mongrel2.org Configuration}
218
218
did with these commands:
219
219
220
220
\begin {code }{Testing The Initial Configuration}
221
- << d['/docs/manual/ inputs/testing_initial_config.sh|pyg|l'] >>
221
+ << d['inputs/testing_initial_config.sh|pyg|l'] >>
222
222
\end {code }
223
223
224
224
That's enough to make sure it runs, but you've got nothing running,
@@ -240,13 +240,13 @@ \section{Step 3: Setup procer}
240
240
and make sure procer can run everything:
241
241
242
242
\begin {code }{Skeleton procer Setup}
243
- << d['/docs/manual/ inputs/skeleton_procer_setup.sh|pyg|l'] >>
243
+ << d['inputs/skeleton_procer_setup.sh|pyg|l'] >>
244
244
\end {code }
245
245
246
246
With all of that, you can then try to run \shell {procer} to watch
247
247
it fail but still try to run everything:
248
248
249
- << d['/docs/manual/ inputs/run_procer_first_time.sh|pyg|l'] >>
249
+ << d['inputs/run_procer_first_time.sh|pyg|l'] >>
250
250
251
251
This is assuming that you are still in the \file {profiles} directory.
252
252
You should see the file \file {error.log} get created and
@@ -290,7 +290,7 @@ \section{Step 3: Setup procer}
290
290
Next up, let's get Mongrel2 running inside \shell {procer}:
291
291
292
292
\begin {code }{procer Config For Mongrel2}
293
- << d['/docs/manual/ inputs/procer_config_for_mongrel2.sh|pyg|l'] >>
293
+ << d['inputs/procer_config_for_mongrel2.sh|pyg|l'] >>
294
294
\end {code }
295
295
296
296
Obviously, you don't have to use a series of \shell {echo} commands to
@@ -303,7 +303,7 @@ \section{Step 3: Setup procer}
303
303
304
304
305
305
\begin {code }{Using procer To Run Mongrel2}
306
- << d['/docs/manual/ inputs/using_procer_to_run_mongrel2.sh|pyg|l'] >>
306
+ << d['inputs/using_procer_to_run_mongrel2.sh|pyg|l'] >>
307
307
\end {code }
308
308
309
309
To watch \shell {procer} in action, try doing \shell {m2sh stop -db config.sqlite
@@ -322,7 +322,7 @@ \subsection{The Python Examples}
322
322
you will change \file {profiles/chat/run} to be like this:
323
323
324
324
\begin {code }{Run Script For Chat Demo}
325
- << d['/docs/manual/ inputs/procer_script_for_chat_demo.sh|pyg|l'] >>
325
+ << d['inputs/procer_script_for_chat_demo.sh|pyg|l'] >>
326
326
\end {code }
327
327
328
328
This little script uses some funky features you might not be familiar
@@ -345,13 +345,13 @@ \subsection{The Python Examples}
345
345
346
346
When you run this manually, you should see something like this:
347
347
348
- << d['/docs/manual/ inputs/run_procer_chat_demo.sh|pyg|l'] >>
348
+ << d['inputs/run_procer_chat_demo.sh|pyg|l'] >>
349
349
350
350
After all that, you can then try out \shell {procer} again to see if it
351
351
properly runs the chat demo as well as mongrel2:
352
352
353
353
\begin {code }{Running procer With Chat Demo}
354
- << d['/docs/manual/ inputs/running_procer_with_chat_demo.sh|pyg|l'] >>
354
+ << d['inputs/running_procer_with_chat_demo.sh|pyg|l'] >>
355
355
\end {code }
356
356
357
357
If you go look at \file {profiles/error.log}, you'll see that \shell {procer}
@@ -365,17 +365,17 @@ \subsection{The Python Examples}
365
365
\file {profiles/handlertest/run}
366
366
\hrule
367
367
368
- << d['/docs/manual/ inputs/procer_handlertest_run.sh|pyg|l'] >>
368
+ << d['inputs/procer_handlertest_run.sh|pyg|l'] >>
369
369
370
370
\file {profiles/mp3stream/run}
371
371
\hrule
372
372
373
- << d['/docs/manual/ inputs/procer_mp3stream_run.sh|pyg|l'] >>
373
+ << d['inputs/procer_mp3stream_run.sh|pyg|l'] >>
374
374
375
375
\file {profiles/web/run}
376
376
\hrule
377
377
378
- << d['/docs/manual/ inputs/procer_web_run.sh|pyg|l'] >>
378
+ << d['inputs/procer_web_run.sh|pyg|l'] >>
379
379
\end {code }
380
380
381
381
@@ -385,7 +385,7 @@ \subsection{Testing The New Setup}
385
385
just need to see if things work. Here's some curl commands to try:
386
386
387
387
\begin {code }{Testing With Curl}
388
- << d['/docs/manual/ inputs/testing_procer_setup.sh|pyg|l'] >>
388
+ << d['inputs/testing_procer_setup.sh|pyg|l'] >>
389
389
\end {code }
390
390
391
391
@@ -421,7 +421,7 @@ \section{Step 4: Static Content}
421
421
out the chat demo:
422
422
423
423
\begin {code }{Setting Up Static Content}
424
- << d['/docs/manual/ inputs/setting_up_static_content.sh|pyg|l'] >>
424
+ << d['inputs/setting_up_static_content.sh|pyg|l'] >>
425
425
\end {code }
426
426
427
427
If you get a good response then you should be able to go to
0 commit comments