Showing posts with label source. Show all posts
Showing posts with label source. Show all posts

Wednesday, 11 June 2014

WWDC 2014

The one thing I wanted to hear from Apple at WWDC was a focus on stability, they seem to have lost one of their core pillars in their products, which is stableness.


Because the most core element in UX design is not simplicity or responsiveness but stability, for nothing breaks more an user's experience than a unstable system.

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
--------------