linux Archive

  • LOCKFILE=/var/lock/my-script.lock   # Check if we're already running (set -C; : > $LOCKFILE) 2> /dev/null if [ $? != "0" ]; then echo "Lockfile exists, exiting" exit 1 fi  ...

    Simple BASH script lockfiles

    LOCKFILE=/var/lock/my-script.lock   # Check if we're already running (set -C; : > $LOCKFILE) 2> /dev/null if [ $? != "0" ]; then echo "Lockfile exists, exiting" exit 1 fi  ...

    Continue Reading...

  • Following on from my previous notes, here’s some more. Again, if this isn’t interesting exits are located to the front, rear and sides. You may have to go backwards to...

    Ubuntu Installation Notes #3

    Following on from my previous notes, here’s some more. Again, if this isn’t interesting exits are located to the front, rear and sides. You may have to go backwards to...

    Continue Reading...

  • This follows on from my previous Ubuntu Installation Notes. It may not make sense to you, it’s mostly just so I can repair my server the next time it breaks...

    Ubuntu Installation Notes #2 – Trac and Apache2

    This follows on from my previous Ubuntu Installation Notes. It may not make sense to you, it’s mostly just so I can repair my server the next time it breaks...

    Continue Reading...

  • Upgrading my server to the latest Ubuntu Server has been slightly traumatic. I learnt it’s a really really bad idea to do an upgrade over SSH, because when the machine...

    Ubuntu 9.10 Installation Notes

    Upgrading my server to the latest Ubuntu Server has been slightly traumatic. I learnt it’s a really really bad idea to do an upgrade over SSH, because when the machine...

    Continue Reading...