Install packages to use Cgroups.
# yum -y install libcgroup libcgroup-tools
# systemctl start cgconfig
[Unit] | |
Description=rTorrent daemon | |
After=network.target | |
[Service] | |
Type=forking | |
KillMode=none | |
User=myuser | |
Group=myuser |
#!/usr/bin/env bash | |
# Instructions: | |
# | |
# 1) Place this script in the /root/ directory, give it proper permissions. | |
# $ sudo chmod +x /root/open-cloudflare.sh | |
# | |
# 2) Open the cron job editor | |
# $ sudo crontab -e | |
# |
#sudo yum install devtoolset-3-gcc -y | |
#sudo yum install devtoolset-3-gcc-c++ -y | |
#sudo yum install centos-release-scl -y | |
sudo yum install devtoolset-3-toolchain -y | |
# add the line below to ~/.bash_profile | |
PATH=/opt/rh/devtoolset-3/root/usr/bin/:$PATH |
sudo restorecon -R -v /var/www |
Open port on Cent OS 6 and earlier:
Step 1
nano /etc/sysconfig/selinux
Make sure the file has this configurations
SELINUX=disabled
#!/bin/bash | |
SWAP="${1:-512}" | |
NEW="$[SWAP*1024]"; TEMP="${NEW//?/ }"; OLD="${TEMP:1}0" | |
umount /proc/meminfo 2> /dev/null | |
sed "/^Swap\(Total\|Free\):/s,$OLD,$NEW," /proc/meminfo > /etc/fake_meminfo | |
mount --bind /etc/fake_meminfo /proc/meminfo |
State: Draft
Based on the Peatio Stable branch
To the coin daemon's {coin}.conf
file, include the -walletnotify
command:
# Notify when receiving coins
[Unit] | |
Description=Twitter Tip Bot daemon | |
After=network.target nimiqd.service | |
[Service] | |
Type=simple | |
User=myuser | |
Group=myuser | |
Environment="TWITTER_USERNAME=twitter_username" |
[Unit] | |
Description=The Ethereum Blockchain Command Line Interface | |
After=network.target | |
[Service] | |
User=deploy | |
Group=deploy | |
ExecStart=/usr/bin/geth --rpc --syncmode "light" --cache=512 --rpcport=8545 --rpcapi eth,personal,net,web3,db --datadir /home/deploy/.ethereum | |
[Install] |