|
Lines 367-379
Link Here
|
| 367 |
|
367 |
|
| 368 |
<para>While every script must meet some minimal requirements, most |
368 |
<para>While every script must meet some minimal requirements, most |
| 369 |
of the time these requirements are &os; version |
369 |
of the time these requirements are &os; version |
| 370 |
agnostic. Each script must have a <filename>.sh</filename> |
370 |
agnostic. Each script must be executable by the system; this is |
| 371 |
extension appended to the end and every script must be |
371 |
typically achieved by using the <command>chmod</command> command and |
| 372 |
executable by the system. The latter may be achieved by using |
372 |
setting the unique permissions of <literal>555</literal>. There should |
| 373 |
the <command>chmod</command> command and setting the unique permissions |
373 |
also be, at minimal, options to <literal>start</literal> and <literal>stop</literal> |
| 374 |
of <literal>755</literal>. There should also be, at minimal, |
374 |
the application.</para> |
| 375 |
an option to <literal>start</literal> the application and an |
|
|
| 376 |
option to <literal>stop</literal> the application.</para> |
| 377 |
|
375 |
|
| 378 |
<para>The simplest start up script would probably look a little |
376 |
<para>The simplest start up script would probably look a little |
| 379 |
bit like this one:</para> |
377 |
bit like this one:</para> |