Last active
August 29, 2015 14:03
-
-
Save trajakovic/3aef71e0009767d0be53 to your computer and use it in GitHub Desktop.
Install daemontools on CentOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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