Hi Vlad,

> /usr/local/ns
>                bin
>                conf
>                include
>                lib
>                html
>                tcl
>                logs
>                modules

Looks good. Especially the "logs" dir as a central place for logs is nice. 
Where is man? (or doc)

> In mime.tcl i keep long list(504 lines) of all known mime types, it is
> easier to add/modify this file and keep server up-to-date with new mime
> types. I'd like to add it to distribution.

Would be nice to have it! Including mimetypes in a tcl file is more visible 
than only in the c-code. I also have a list of types, but not as long as 
yours.

> bin/nsd.start is
>
> #!/bin/bash
> USER=nobody
> GROUP=nobody
> BIN=/usr/local/ns/bin/nsd
> CFG=/usr/local/ns/conf/nsd.tcl
> LOG=/usr/local/ns/logs/nsd.log
>
> touch $LOG
> chown $USER $LOG
> exec $BIN -i -u $USER -g $GROUP -t $CFG >> $LOG 2>&1

I would recommend to add an example directory, including e.g. a dir 
"startscripts" that holds this one and more, e.g. I can add a SuSE specific 
one. 
One problem (when including it generally at bin/) is that all arguments would 
have to be created during make process or by a config script (like Stephens 
suggestion of a "nsdeploy") in order to work with different prefixes.

Saying this mainly the biggest effort would be to adhere to FSH or LSB 
standards. This is not important now as it can be passed on to a RPM 
approach: No files would be installed to /usr/local, they would spread over 
different places like /srv/ (only for docroot), /usr/bin etc.

-Bernd.

Reply via email to