Showing posts with label perforce. Show all posts
Showing posts with label perforce. Show all posts

Sunday, 8 June 2014

Linus Torvalds on Git

Last night, I watched this very interesting talk by Linus on Git,  even the video is slightly out-dated, I was very impressed by his sense of design that goes beyond the back-end but takes in consideration the user's experience in it's core principals.


Another thing I noticed is that he has a very good sense of security and putting forward the importance of integrity checking does make his SCM solution safely distributable.

I'm really considering now switching from a Perforce base to a fully Git solution for my projects.

Friday, 13 January 2012

My Perforce init.d script

-------------
#!/bin/sh -e
export P4JOURNAL=/var/log/perforce/journal
export P4LOG=/var/log/perforce/p4err
export P4ROOT=/var/perforce_depot
export P4PORT=1666

PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"
. /lib/lsb/init-functions

p4start="p4d -d"
p4stop="p4 admin stop"
p4user=perforce

case "$1" in
start)
log_action_begin_msg "Starting Perforce Server"
daemon -u $p4user $p4start;
;;
stop)
log_action_begin_msg "Stopping Perforce Server"
p4Pid=$(pidof /usr/local/bin/p4d);
kill -9 $p4Pid;
;;

restart)
stop
start
;;

*)
echo "Usage: /etc/init.d/perforce (start|stop|restart)"
exit 1
;;

esac
exit 0
--------------