Child pages
  • rsync daemon service on OpenIndiana

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: need to set execute permisson on rsyncd method file

...

copy the attached file "rsyncd" to: /lib/svc/method/rsyncd

set the execute permission on the above file for user root:

chmod u+x /lib/svc/method/rsyncd

(Thanks to http://robbiecrash.me/?p=22 for pointing out that I missed the above chmod step)

copy the attached file "rsync" to: /etc/default/rsync

Note that the variable RSYNC_ENABLE is already set to true in the last this file.

now create a valid /etc/rsyncd.conf file. This must be done or the service will not run.

...

example /etc/rsyncd.conf file:

Code Block

use chroot = yes
read only = yes
log file = /var/adm/rsyncd_upload.log
log format = - %a - %f
transfer logging = yes

#module to share ISO files
[ISO]
path = /lift/data/ISO
comment = public ISO repository

Now you can import the service manifest with the following code:

Code Block

svccfg -v import /var/svc/manifest/network/rsyncd.xml

Next check to see the status of the rsyncd service:

Code Block

svcs -a | grep rsyncd

you should see something like this:

Code Block

offline          2:04:55 svc:/network/rsyncd:default

Now you need to enable the service:

Code Block

svcadm enable network/rsyncd

Now execute the svcs command again and also execute ps:

Code Block

svcs -a | grep rsync

The service should be listed as online now

Now execute:

Code Block

ps aux | grep rsync

you should see something like this:

Code Block

root     13351  0.0  0.0 2688 1340 ?        S 02:04:55  0:00 /usr/bin/rsync --d

...

Congrats, your rsyncd should be working now. Test it out from a client machine using a small file for testing with something like:

Code Block

rsync servername::ISO/some_file.iso /localpath/here/

or just get a list of the files and/or directories by using verbose mode and piping to less

Code Block

rsync -v servername::ISO | less

...