Differences between revisions 6 and 7
Revision 6 as of 2006-01-02 12:45:42
Size: 1018
Editor: daxxar
Comment: Updated spinetd, now checks for failed execv (thanks patw)
Revision 7 as of 2009-03-15 22:42:41
Size: 1022
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
 1. Download and extract the attached file (attachment:spinetd-fork-v1.tgz). (Click "More actions:" and "Attachments" to find it)  1. Download and extract the attached file ([[attachment:spinetd-fork-v1.tgz]]). (Click "More actions:" and "Attachments" to find it)

spinetd is a simple inetd-like application. (See http://www.linuxco.de/spinetd/ for original page) Attached here is a modified version. It has optional arguments, more errorchecking, sane defaults, forking to the background, fewer bugs, etcetera. ;)

Its syntax is:

  • /spinetd [-b bind_address] [-w working_dir] [-u set_user] <bind_port> <program> <opt> <opt> ...

    bind_adress is what IP it binds to (all IPs per default), working_dir is what dir it changes to before it runs the file, set_user is what user it changes to after it has done the bind (if you e.g. want port < 1025, but still feel safe ;)) (only valid as root (uid 0))

It works great for people who cannot (or will not) run inetd / xinetd and configure it for irssi2. (E.g. limited users on a system (nonadmins))

  1. Download and extract the attached file (spinetd-fork-v1.tgz). (Click "More actions:" and "Attachments" to find it)

  2. Run a 'make'.
  3. ./spinetd 1027 /path/to/irssi2/binary

Tada! Simple as pie! :D

SpinetdHowto (last edited 2009-03-15 22:42:41 by localhost)