Paul Nash wrote:
> What is the best way to have tclhttpd automatically startup under Linux (Suse 9.3). The server is currently in a user home directory -uid 1000 -gid 100.
The tclhttpd source tarball comes with some startup scripts that can be
placed in /etc/init.d (as root) to control startup at boot time:
debian/init.d - startup script for debian
bin/tclhttpd.etc.init - startup script for RedHat
The RPM from Fedora contains another /etc/init.d script suitable for
Fedora-based systems. These are all good starting points for writing
your own init.d script for Suse. If you do write one, please let us
know so that we can include it in future tclhttpd releases.
An alternative to using an init.d startup script (which requires root
privileges) is to create a cron job for the user that starts tclhttpd
after a reboot:
@reboot /path/to/tclhttpd start -daemon 1 -config /path/to/your/config
Note, however, that if you want to run tclhttpd on port 80 then it must
be started initially as root so that it can bind to this privileged
port. Use the 'Config uid ...' configuration in tclhttpd.rc to have
tclhttpd switch to a different user after binding to port 80.
Hope this helps,
--Mike
|