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/sh -e | |
# EDIT: /etc/rc.local | |
# /usr/bin/nohup /usr/bin/systemd-run --nice=19 --scope -p CPUQuota=1% /usr/local/bin/nic_irq_balance.sh & | |
# cpu core check | |
CORE=`echo $(grep -c ^processor /proc/cpuinfo)` | |
if [ ${CORE} = 1 ]; then | |
MASK="1" | |
elif [ ${CORE} = 2 ]; then | |
MASK="1 2" |
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/sh | |
DATE=`date '+%Y%m%d%H%M%S'` | |
DUMPCMD="/usr/bin/mysqldump" | |
INNOBACKUPEX="/usr/bin/innobackupex" | |
BACKUP_DIR="/root/db_backup/" | |
USER="root" | |
PASS="zabbix" |
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
/var/log/unbound/*.log { | |
weekly | |
rotate 7 | |
missingok | |
notifempty | |
compress | |
delaycompress | |
sharedscripts | |
create 644 | |
postrotate |
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
log info "///---->backup" | |
global backupfile ([/system identity get name]. ".backup") | |
if ([/file find name=$backupfile] != "") do={/file rem $backupfile} | |
delay 5s | |
global logMessages; | |
set logMessages "" | |
foreach i in=[/log find ] do={ | |
set logMessages ($logMessages. [/log get $i time ]. " "); | |
set logMessages ($logMessages. [/log get $i message ]); | |
set logMessages ($logMessages. "\n") } |
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
[Unit] | |
Description=Open vSwitch Internal Unit | |
PartOf=openvswitch-switch.service | |
Wants=openvswitch-switch.service | |
Before=networking.service | |
[Service] | |
Type=oneshot | |
RemainAfterExit=yes | |
EnvironmentFile=-/etc/default/openvswitch-switch |
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/sh -e | |
### BEGIN INIT INFO | |
# Provides: networking ifupdown | |
# Required-Start: mountkernfs $local_fs urandom | |
# Required-Stop: $local_fs | |
# Should-start: openvswitch-nonetwork.service openvswitch-switch.service | |
# Should-stop: openvswitch-nonetwork.service | |
# Default-Start: 1 2 3 4 5 | |
# Default-Stop: 0 6 | |
# Short-Description: Raise network interfaces. |
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
$ diff /etc/init.d/networking{,.org} | |
6c6 | |
< # Default-Start: 1 2 3 4 5 | |
--- | |
> # Default-Start: S | |
$ diff /etc/init.d/libvirt-bin{,.org} |
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
# pidfile = "/var/run/mackerel-agent.pid" | |
# root = "/var/lib/mackerel-agent" | |
# verbose = false | |
# apikey = "" | |
# Configuration for connection | |
# [connection] | |
# post_metrics_dequeue_delay_seconds = 30 # delay for dequeuing from buffer queue | |
# post_metrics_retry_delay_seconds = 60 # delay for retring a request that causes errors | |
# post_metrics_retry_max = 10 # max numbers of retries for a request that causes errors |
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
[mysqld] | |
datadir=/var/lib/mysql | |
socket=/var/lib/mysql/mysql.sock | |
user=mysql | |
tmpdir = /tmp/mysqltmp | |
# Disabling symbolic-links is recommended to prevent assorted security risks | |
symbolic-links=0 | |
innodb_file_per_table=1 |
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
net.ipv4.ip_forward = 1 | |
net.ipv4.conf.default.rp_filter = 0 | |
net.ipv4.conf.default.accept_source_route = 0 | |
net.ipv4.tcp_syncookies = 1 | |
net.ipv4.tcp_tw_reuse = 1 | |
net.ipv4.tcp_tw_recycle = 0 | |
net.ipv6.conf.all.accept_ra = 0 | |
net.core.somaxconn = 4096 | |
net.core.rmem_max = 16777216 | |
net.core.wmem_max = 16777216 |