#1
  1. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Posts
    702
    Rep Power
    96

    Startup service on a centos


    I am trying to figure out where to start the git process on a centos. I compare a git installation on a different server, freebsd, and I see the following:
    PHP Code:
    ps -grep git
    24088  
    ??  Is     0:05.15 /usr/local/libexec/git-core/git-daemon --syslog --base-path=/home/git --export-all --detach --verbose --enable=rec 
    and I would like to have the same on a centos. Where do I do this?
    Evan
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,453
    Rep Power
    4539
    Most Centos daemons use something like /etc/sysconfig/<daemonname> <command>. Redhat and Centos has a wrapper cli program 'service' so you can do something like
    Code:
    service httpd start
    I'm not familiar with git daemon, but check in /etc/sysconfig and see if there is a git script, if so you can use the service command. Also look at chkconfig for autostart configuration.
    ======
    Doug G
    ======
    Bartender to Rene Descartes "have another beer?" Descartes: "I think not" and he vanished.
    --Alfred Bester
  4. #3
  5. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Posts
    702
    Rep Power
    96
    Nothing under /etc/sysconfig/ or chkconfig. I am trying to clone a remote repository using
    PHP Code:
    git://epanagio@<domain>/<repository.git> 
    I've tried many different flavors of the above but it always fail to clone.
    Evan
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2012
    Posts
    55
    Rep Power
    3
    /etc/rc.d/init.d Any start up scripts there?
    Can also try find / -name *git* or whereis git perhaps.
  8. #5
  9. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Posts
    702
    Rep Power
    96
    Oy. git-daemon had to be installed via yum. Once that daemon was installed...everything worked as expected.
    Thanks.
    Evan

IMN logo majestic logo threadwatch logo seochat tools logo