Bernard Biessy wrote:
 > Hi all,
 >
 > I would like to use rsyncd manifest but I have some errors with the methods :
 >
 > When I want to enable the service, rsync is in maintenance state :
 > :svcadm -v enable  svc:/network/rsync:
 > svc:/network/rsync:default enabled.
 > :svcs -a | grep rsync
 > maintenance    Dec_08   svc:/network/rsync:default
 > :

You need to use "svcadm clear" assuming you've fixed the original issue.

      clear {FMRI | pattern}. . .

          For each service instance specified by the operands,  if
          the  instance is in the maintenance state, signal to the
          assigned restarter that the service has  been  repaired.

 > I also an error when I want to stop the RSYNC deamon, process isn't kill :
 > :svcadm -v disable  svc:/network/rsync:
 > svc:/network/rsync:default disabled.
 > :svcs -a | grep rsync
 > disabled       11:20:06 svc:/network/rsync:default
 > :ps -eaf | grep rsync
 >     root 29569     1   0   Dec 08 ?           0:00 /usr/local/bin/rsync 
--daemon --config=/usr/local/etc/rsyncd.conf --port=873
 >     root 27080 20590   0 11:20:29 pts/1       0:00 grep rsync
 > :

That's because you started rsync manually so it is not under the control of SMF
and "svcadm disable" will not kill any processes svc.startd hasn't started.

 >
 > And I haven't errors messages in /var/svc/log/network-rsync:default.log file 
 > ...

The error is "Method failed"

Check the start method from the repository (not the xml file) and make sure it 
is valid:
svcprop -p start/exec svc:/network/rsync:default

-- Renaud



Reply via email to