SMF entry for the CVS pserver
This is something which I stumbled over last year: with the move to SMF (Service Management Facility), just adding a line to /etc/inet/inetd.conf for a new service such as CVS doesn't work any more.
This manifest will let you run CVS as a service on your Solaris 10/Express machine. Save it as
/var/svc/manifest/network/cvspserver-tcp.xml
and ensure you've got the line
cvspserver 2401/tcp #cvs pserver process
in your /etc/services, edit the exec_method to suit your site, then run
# svccfg import /var/svc/manifest/network/cvspserver-tcp.xml
# svccfg disable svc:/network/cvspserver/tcp:default
# svccfg enable svc:/network/cvspserver/tcp:default
and be on your merry way.
You should check the manpages for inetconv(1M) and smf(5), and the docs.sun.com entries in the Solaris 10 System Administrator Collection for more information. If you really want to get stuck into SMF, then check out these resources at the bigadmin site:
SMF hits on bigadmin
Sun Microsystems --- BigAdmin: Solaris Service Management Facility --- Service Developer Introduction
Sun Microsystems --- BigAdmin: Solaris Service Management Facility --- Quickstart Guide
BigAdmin Feature Article: Solaris 10 OS Feature Spotlight: Predictive Self---Healing
Posted by Liane Praza on April 06, 2005 at 02:58 PM EST #
Posted by James McPherson on April 06, 2005 at 03:12 PM EST #
Posted by Liane Praza on April 06, 2005 at 03:25 PM EST #
Posted by Mano Koseos on May 24, 2005 at 08:37 PM EST #
Posted by Jon Green on May 29, 2005 at 08:13 AM EST #
Aug 19 15:44:17 x inetd[23233]: [ID 702911 daemon.error] Property 'name' of instance svc:/network/cvspserver/tcp:default is missing, inconsistent or invalid
Aug 19 15:44:17 x inetd[23233]: [ID 702911 daemon.error] Property 'proto' of instance svc:/network/cvspserver/tcp:default is missing, inconsistent or invalid
Aug 19 15:44:17 x inetd[23233]: [ID 702911 daemon.error] Invalid configuration for instance svc:/network/cvspserver/tcp:default, placing in maintenance
I'm on a machine using NIS+ and I wonder if that is causing me problems. I have cvspserver 2401/tcp in /etc/services i have files listed in nsswitch.conf for services stuck now :(
Posted by Richard Ambridge on August 20, 2005 at 12:47 AM EST #
Posted by Moisés on April 18, 2006 at 04:20 AM EST #
Posted by Mr. Bit Fly on November 01, 2006 at 10:38 AM EST #
Posted by Mr. Bit Fly on November 01, 2006 at 10:40 AM EST #
The commands are the following to instal cvs
#vi /etc/services
cvspserver 2401/tcp # CVS Client/server operations
cvspserver 2401/udp # CVS Client/server operations
vi /etc/inetd.conf
cvspserver stream tcp nowait root /usr/local/bin/cvs -f --allow-root=/export/home/cvsroot pserver
#inetconv -n
#inetconv -e -i /var/svc/manifest/network/cvspserver-tcp.xml
#cd /var/svc/profile
#vi inetd_services.xml
<service name='network/cvspserver-tcp' version='1' type='service'>
<instance name='default' enabled='true'/>
</service>
#svcs restart svc:/network/inetd:default
just be care about where is your cvs command the mine is in /cvs/sfw/bin/cvs
i found the solution in
http://publish.it168.com/2006/0309/20060309029801.shtml?positioncode=1547
Posted by 189.146.17.230 on November 01, 2006 at 10:43 AM EST #
Posted by Nick Dolan on November 04, 2006 at 02:07 AM EST #
Posted by Gord Cody on December 13, 2006 at 11:47 PM EST #
Posted by Gord Cody on December 13, 2006 at 11:58 PM EST #
Posted by Gord Cody on December 24, 2006 at 06:25 PM EST #
Hi,
How can I allow root to get connected with CVS from Remote machine. I'm using CVS Manager, when i issue command :pserver:root@xxxmachine:/opt/cvs, it says:
Invalid CVS entries. Refer the following logs:
root not allowed
How can I allow root to get connected from remote machine.
Anyone knows?
Best Regards
Posted by Imran on January 14, 2008 at 04:35 PM EST #
I think you should check out the doco at the <a href="http://ximbiot.com/cvs/wiki/CVS%20FAQ">CVS FAQ</a> site.
Posted by James McPherson on January 14, 2008 at 05:16 PM EST #