[OpenIndiana-discuss] Setting up rsync server - can't enable the service

Albert Lee trisk at opensolaris.org
Sun Jan 2 20:42:27 UTC 2011


On Tue, Dec 28, 2010 at 1:20 PM, WK <openindiana at familyk.org> wrote:
> I've been trying to set up an rsync server using a method that worked on
> OpenSolaris, but it doesn't work on OpenIndiana. I just installed
> OpenIndiana 148, and to set up the rsync server, I followed the recipe I
> worked out before:
>
> 1. Create the service manifest /var/src/manifest/network/rsync.xml
> 2. Create method script /lib/svc/method/rsync
> 3. Make the rsync config files, e.g. /etc/rsyncd.conf
> 4. Using svccfg, validate the service manifest
> 5. Use svcadm to enable the rsync service.
>
> The process goes fine until the final step, where I find that I can't
> enabled the rsync service.
>
> First, is there an easier way of doing this, or another way I should be
> doing it?
>
> Assuming this technique is ok, the problem seems to be a dependency. Getting
> information about the service.
>
> % svcs -l svc:/network/rsync
> fmri         svc:/network/rsync:default
> name         RSYNC daemon
> enabled      true
> state        offline
> next_state   none
> state_time   December 28, 2010 11:40:04 AM CST
> restarter    svc:/system/svc/restarter:default
> dependency   require_all/error svc:/network/loopback:default (online)
> dependency   require_all/error svc:/network/physical:default (offline)
> dependency   require_all/none svc:/system/filesystem/local (online)
>
> It must be offline because /network/physical is offline. By the way, the
> network functions just fine. Nonetheless, getting information about
> /network/physical,

The network/physical:default and network/physical:nwam services are
mutually exclusive and the latter is the default. Your dependency
should be on network/physical, not a specific instance.

-Albert



More information about the OpenIndiana-discuss mailing list