Last active
March 16, 2017 05:05
-
-
Save bkrepo/e02847852b39d2bbc07dcb27cdaf1b1d to your computer and use it in GitHub Desktop.
rc.local file for samba server testing
This file contains hidden or 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 | |
# | |
# rc.local | |
# | |
# This script is executed at the end of each multiuser runlevel. | |
# Make sure that the script will "" on success or any other | |
# value on error. | |
# | |
# In order to enable or disable this script just change the execution | |
# bits. | |
# | |
# By default this script does nothing. | |
if [ -f /aafirstboot ]; then /aafirstboot start ; fi | |
echo 0 > /sys/devices/system/cpu/cpu0/online | |
echo 0 > /sys/devices/system/cpu/cpu1/online | |
echo 0 > /sys/devices/system/cpu/cpu2/online | |
echo 0 > /sys/devices/system/cpu/cpu3/online | |
ifconfig eth0 mtu 6975 | |
echo f > /sys/class/net/eth0/queues/rx-0/rps_cpus | |
echo 5 > /proc/irq/143/smp_affinity_list | |
echo 6 > /proc/irq/144/smp_affinity_list | |
#/usr/local/samba/sbin/smbd -D -s /etc/samba/smb.conf | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment