29 | | `Must be documented` |
| 29 | The installation instructions can be found [wiki:SaliServerInstallation here]. |
| 30 | |
| 31 | ==== !Starting/Stopping/Restarting the server ==== |
| 32 | |
| 33 | Just issue one of the following commands: |
| 34 | {{{ |
| 35 | /etc/init.d/sali start |
| 36 | /etc/init.d/sali stop |
| 37 | /etc/init.d/sali restart |
| 38 | }}} |
| 39 | |
| 40 | ==== The ```sali``` command ==== |
| 41 | |
| 42 | With the SALI server suite, the command ```sali``` is installed. With this command you fetch a image or generate a ```rsyncd.conf``` file for your rsync daemon. |
| 43 | |
| 44 | ===== Fetching a image ===== |
| 45 | |
| 46 | Before you fetch an image, a rsync daemon must be started on your golden client. You can use the shell script ```sali_prepare``` from our [source:trunk/example example] directory. |
| 47 | |
| 48 | Then you can use the option getimage to start the image transfer from your golden client. Before the transfer starts, sali will ask you the hostname of the golden client and which image must be create/updated. |
| 49 | |
| 50 | {{{ |
| 51 | sali getimage |
| 52 | }}} |
| 53 | |
| 54 | It's also possible to exclude some location of your golden client to be transfers to your installation server. To do this, you first must create a exclude file (see the rsync man page for the exclude PATTERN). Then with the option ```-e/--exclude``` you can tell SALI where your exclude file is located. |
| 55 | |
| 56 | Example for a exclude file: |
| 57 | {{{ |
| 58 | /var/tmp/* |
| 59 | /tmp/* |
| 60 | /scratch/* |
| 61 | /usr/src/* |
| 62 | /var/log/*.gz |
| 63 | /var/log/ntpstats/*.gz |
| 64 | /var/log/atsar/* |
| 65 | /var/log/ksymoops/* |
| 66 | /home/* |
| 67 | }}} |
| 68 | |
| 69 | ===== Creating a rsync configuration file ===== |
| 70 | The second main option of the command ``sali`` is the generation of a rsyncd.conf file. This is needed to dsitributed your installation scripts and images. |
| 71 | |
| 72 | To generate a rsyncd.conf, issue the following command: |
| 73 | {{{ |
| 74 | sali rsync |
| 75 | }}} |
| 76 | |
| 77 | SALI will check your configuration will use the following options from you sali.cfg |
| 78 | - From section [wiki:SaliServerInstallation#rsync rsync] option stubsdir |
| 79 | - From section [wiki:SaliServerInstallation#update update] imagedir |