On Thu, 1 Nov 2001, David Vos wrote: > > I've just used it with rc.d. I attached my /etc/rc.d/init.d/ssh2 > script. They you should be able to type 'service ssh2 start', or > enable/disable it on startup with chkconfig. No guarantees on the script, > though. I just made it for my own use. > > David > I like using the daemon and killproc fuctions over using the action function to start and stop a program. They take care of the book keeping chores for you. Things like not trying to restart the program if it is alread running, and not trying to kill a program that is not running anyway.
You might also want to take a look at the file supplied with openssh, as it does nice things like checking for the server keys, and building them if they are missing... (I am lazy - I would rather modify something that is almost what I want, instead of starting from scratch!) Mikkel -- Do not meddle in the affairs of dragons, for you are crunchy and taste good with ketchup. _______________________________________________ Seawolf-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/seawolf-list