Skip to content

Instantly share code, notes, and snippets.

@dtjm
Created August 4, 2010 23:32
Show Gist options
  • Save dtjm/508978 to your computer and use it in GitHub Desktop.
Save dtjm/508978 to your computer and use it in GitHub Desktop.
A script that will download, compile, and install daemonize. Works on Centos 5.4
#!/bin/bash
DIR=daemonize-src
[ -d $DIR ] || mkdir $DIR
cd $DIR
curl -L http://github.com/bmc/daemonize/tarball/release-1.6 | tar zxv
cd bmc-daemonize-*
./configure
make
sudo make install
RETURN=$?
cd ../..
echo -n "Install was successful! Deleting all temp files..."
[ $RETURN -eq 0 ] && rm -rf $DIR
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment