Sunday Apr 08, 2007

Setup CVS server on Solaris Nevada build 59

Do following as root privilege.

  1. Download cvs pkg from sunfreeware.com, and install it
    http://www.sunfreeware.com/programlistsparc10.html#cvs
  2. # vi /etc/services
    append one new line: cvspserver      2401/tcp      # CVS pserver daemon
  3. # vi /etc/inetd.conf
    append one new line: cvspserver  stream  tcp  nowait  root /workspace/scm/cvs/bin/cvs.inetd
  4. # cat <<EOF >/workspace/scm/cvs/bin/cvs.inetdcvs.inetd
    > #!/bin/bash
    >
    > REPOS="--allow-root=/workspace/scm/cvs/cvsroot/test"
    >
    > /workspace/scm/cvs/bin/cvs -f $REPOS pserver
    > EOF
  5. # chmod a+x /workspace/scm/cvs/bin/cvs.inetdcvs.inetd
  6. # mkdir -p /workspace/scm/cvs/cvsroot/test
  7. # cvs -d /workspace/scm/cvs/cvsroot/test init
  8. # reboot

  9. Done.

 

It seems that this is bug that we need to reboot the OS to make cvs server work.
Believe me, I tried many ways to avoid this but failed

 

  1. # svcs -p |grep inetd
    online         Apr_06   svc:/network/inetd:default
  2. # svcs restart svc:/network/inetd:default
  3. # inetadm | grep cvs
  4. [no out put, failed #1]

  5. # init S
  6. # init 3
  7. # inetadm | grep cvs
  8. [no out put, failed #2]

  9. # reboot
  10. # inetadm | grep cvs
    enabled   online         svc:/network/cvspserver/tcp:default
  11. [works now :( ]


About

simford

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today