Linux Startup (as a Service) Script

Mindwatering Incorporated

Author: Tripp W Black

Created: 10/06/2003 at 12:12 AM

 

Category:
Linux
Domino

The information contained in this technote is out-dated and is for reference only.
- There are new scripts for SystemD
- There are different performance settings, and much of the tuning Domino sets itself.


Process:
1. Create/save the appropriate script in "/etc/rc.d/init.d". Edit using gedit or vi on the linux box so you do not have to worry about carriage return issues.
2. Customize the user & path information for your environment.
3. Make the script executable.
4. Run the chkconfig program to make it available for the services list. (You can also run it with specific flags for specific run levels.)
5. Add notes directory to server user's home .bash_profile file. (Add to PATH variable in bash.profile.)
If you skip this step you will get an error starting the server, that when researched says that /opt/lotus/bin/server unable to locate notes.ini
6. Check that the sever's name is in notes.ini or DNS or controller won't be able to bind to it via port 2050 if using the Java Controller.
6. Test startup.
7. Add/test tweaks outlined below.

R5 startup script:
linux startup script.txt

Domino6 IBM Startup Script:
domino

After you create the script file, you need to make it executable by doing a chmod 755 on it.
e.g. chmod 755 domino

Now add domino (the script) to the services list:
e.g. chkconfig --add domino
(this command contains 2 dashes)

Restart the system and login as notes.

Other Info:
__________________________________________________

Anthony Barker/xminc.com posting in notes.net/46dom.nsf

Update rc.local file
Try these parameters and if they work add them to your rc.local file so that they take effect each time you boot the machine. This will increase the number of file handles available and the number of inodes.
      locate rc.local
      pico /etc/rc.d/rc.local
      echo "65536" > /proc/sys/fs/file-max
      echo "196608" > /proc/sys/fs/inode-max
      (inode limit should be 2..3 times file limit).

      Set inode-state and inode-nr

      chattr -R +A /local/notesdata
      sets noatime for file system below notesdata directory. Oracle users say that this gives them a 5-8% boost - I have seen mild improvements in domino.

Edit the /etc/sysctl.conf file (redhat)
      and add the following line:

      # Improve the number of open files
      fs.file-max = 8192

      su to the domino account and issue
      ulimit -n 90000

      Which allows domino 90000 file descriptors
      ulimit -a
      #see the new settings


A couple of other ones:
      echo "100 1200 128 512 15 5000 500 1884 2">/proc/sys/vm/bdflush
      (one line)

      echo 300 400 500 > /proc/sys/vm/freepages

TCPIP Settings

Make sure you have a good network card - some do not give full 10/100 Meg Access.
Upgrade to 2.4.18 or better as the kernel tcpip stack performance is much better.

      For a Web Server:
      echo "10240 61000" > /proc/sys/net/ipv4/ip_local_port_range
      echo "134217728" > /proc/sys/kernel/shmmax
      echo 300 > /proc/sys/net/ipv4/tcp_keepalive_time


      On a LAN

      echo 0 > /proc/sys/net/ipv4/tcp_timestamps

      disable TCP timestamps

      echo 0 > /proc/sys/net/ipv4/tcp_window_scaling
      disable window scaling

      echo 0 > /proc/sys/net/ipv4/tcp_stack
      disable selective acks




__________________________________________________
Tony Byrne
Senior Technical Consultant
www.double6.co.uk
23 April 2003

Updated script from Hunting Energy Services:
domino
Note: This one requires modifications for CentOS and Redhat 5.x to the start, stop, and restart functions.

Some performance tuning that you can do:

First, we need to discover what some of your current limits are, type the commands...
more /proc/sys/fs/file-max
more /proc/sys/kernel/sem

Add the following lines to /etc/sysctl.conf

#ND6 Tweaks
fs.file-max=49152
kernel.shmmni=8192
kernel.sem=250 12800032 1024
kernel.threads-max=8192

Some important notes:
For the fs.file-max line, use your previous value if it is higher.
For the kernel.sem line, use your previous values if they are higher.
If the kernel.threads-max value exists, do not change it.

Next edit /etc/security/limits.conf

Add the following lines

#ND6 Tweaks
* soft nofile 1024
* hard nofile 49152

Once again, if the value for fs.file-max is higher then use that.

Next edit the file .bash_profile for the Notes user and add the lines

ulimit -n 49152
export NOTES_PRIVATE_DPOOLSIZE=1000000

Once again, if the value for fs.file-max is higher then use that.

These modifications will require a reboot of your system.


previous page

×