Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@trajakovic
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trajakovic/3aef71e0009767d0be53 to your computer and use it in GitHub Desktop.
Save trajakovic/3aef71e0009767d0be53 to your computer and use it in GitHub Desktop.
Install daemontools on CentOS
#!/bin/bash
func_check_for_root() {
if [ ! $( id -u ) -eq 0 ]; then
echo "ERROR: $0 Must be run as root, Script terminating" ;exit 7
fi
}
func_check_for_root
yum install patch -y
cd /opt
wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz
tar xzvf daemontools-0.76.tar.gz
rm -f daemontools-0.76.tar.gz
cd admin/daemontools-0.76/src
wget https://gist.githubusercontent.com/trajakovic/7d151f144f3db575d5fa/raw/conf-cc.patch
wget https://gist.githubusercontent.com/trajakovic/a61fa122ce78cda674d0/raw/multilog_max_file_size.patch
patch < conf-cc.patch
patch multilog.c < multilog_max_file_size.patch
cd ..
package/install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment