Inetd services

From Lolly's Wiki
Revision as of 09:57, 30 October 2015 by Lollypop (talk | contribs)
Jump to navigationJump to search

Kategorie:Solaris

Setting up rsyncd as inetd service

1. Put it into the legacy file /etc/inetd.conf

# printf "rsync\tstream\ttcp\tnowait\troot\t/usr/bin/rsync\t/usr/bin/rsync --config=/etc/rsyncd.conf --daemon\n" >> /etc/inetd.conf

2. Use inetconv to generate your XML file

# inetconv -o /tmp 
100235/1 -> /tmp/100235_1-rpc_ticotsord.xml
Importing 100235_1-rpc_ticotsord.xml ...Done
rsync -> /tmp/rsync-tcp.xml
Importing rsync-tcp.xml ...Done

3. Optionally modify the generated XML file /tmp/rsync-tcp.xml

4. Import the XML file

# svccfg import /tmp/rsync-tcp.xml

5. Enable it:

# inetadm -e svc:/network/rsync/tcp:default