[9fans] Content of your /rc/bin/service or /dis/svc ?

2024-03-02 Thread Edouard Klein
Dear 9fans,

Those of you who run a Plan 9 or Inferno box, could you please share the
contents of your /rc/bin/service or /dis/svc dir ?

I'm writing about Plan 9's listen, and I've read the scripts included in
the default distribution (e.g.
http://git.9front.org/plan9front/plan9front/c5c19dfe4998fa40de5f58f61439fd5fd65c9056/rc/bin/service/f.html),
but I'm curious to see how it's used in practice now by people who are
familiar with the system (which I'm not, since I don't run a Plan 9
box).

Thanks in advance,

Edouard.

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Tf73851503467346f-M66cb88b13f0e3f7dc29fae27
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Content of your /rc/bin/service or /dis/svc ?

2024-03-02 Thread sirjofri
Hello,

I don't use /rc/bin/service anymore, but I use /cfg/machinename/service 
instead. My contents are copies of what's in /rc/bin/service or my own scripts:

tcp80 - web server
tcp443 - web server but wrapped in tls
...

I have some cifd running, some irc server that translates to grid chat, my mail 
server (smtp and imap4), and fingerd, the files follow the usual scheme tcpXXX. 
I probably missed one service or the other, but aux/listen is simple enough to 
set up custom servers with arbitrary functionality.

If you have exact questions about aux/listen functionality or you don't 
understand something, just ask :)

Btw it's quite common to "deactivate" services by renaming the files to have a 
leading "!". In general, everything that follows the naming scheme 
 and is executable will work.

sirjofri

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Tf73851503467346f-M512c462da8b1a759383a0b74
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription