1. Use VI to create your script: vi /etc/init.d/domino (or GEdit - filename is "domino" in the /etc/init.d folder) 2. Add the following lines: #!/bin/sh # # Start/stop the Lotus Domino server # # description: This script is used to start and stop the domino # server as a background process. It will send # the serverID password from a file to the server. # Communication with the server may be done with a screen -r -D Domino when logged in as user 'notes' # # Usage: service domino start|stop # # process name: server, ... # # See how we were called. case $1 in start) echo -n "Starting Domino server..." su - notes -c "screen -d -m -S Domino /home/notes/startnotes" echo "done." ;; stop) echo -n "Stopping Domino server. " su - notes -c "cd /local/notesdata; /opt/lotus/bin/server -jc -q" ;; *) echo "Usage: domino {start|stop}" exit 1 ;; esac exit 0 # End of the domino script 3. -- save that file -- 4. Create another file in the notes home directory... I'm assuming you created the user 'notes' for the domino service. vi /home/notes/startnotes 5. Add the following 2 lines and save cd /local/notesdata /opt/lotus/bin/server 6. make your scripts executable chmod 755 /etc/init.d/domino chmod 755 /home/notes/startnotes 7. Type 'service domino start' 8. Using webmin, or linuxconf you can optionally have domino started at bootup. a. Webmin: click 'System' then 'Bootup/shutdown'. Find the Domino task and change its status to 'Start at boot'. b. linuxconf: click 'Service Control' and scroll to the Domino service -- change startup to 'Automatic'