How to create auto startup script in redhat 9.2?
by louis.cheung from LinuxQuestions.org on (#6JT83)
I am quite new to linux, but I have some tasks needed to do on my work. Hopefully can seek some help here..
Situtaion: I am setting up a Domino server 12 in Redhat 9.2 platform. During the configuration, I have some difficulties on setting up auto startup script in linux. I've changed the path of data location and the service account due to customer's request.
Normally, If I want to start the domino server, the procedure will be:
1. Login as the service account: notessrv (By default is notes)
2. Go to the notesdata files: cd /opt/hcl/domino/notesdata (By default is cd /localdata/notesdata)
3. Open the server document: /opt/hcl/domino/bin/server (Same as default)
I want to run these procedure automatically during the OS startup, so I created a script by
vi /etc/init.d/domino
#Inside domino script content
su notessrv -c "cd /opt/hcl/domino/notesdata; /opt/hcl/domino/bin/server"
After all, it seems the script "domino" doesnt run automatically...
Situtaion: I am setting up a Domino server 12 in Redhat 9.2 platform. During the configuration, I have some difficulties on setting up auto startup script in linux. I've changed the path of data location and the service account due to customer's request.
Normally, If I want to start the domino server, the procedure will be:
1. Login as the service account: notessrv (By default is notes)
2. Go to the notesdata files: cd /opt/hcl/domino/notesdata (By default is cd /localdata/notesdata)
3. Open the server document: /opt/hcl/domino/bin/server (Same as default)
I want to run these procedure automatically during the OS startup, so I created a script by
vi /etc/init.d/domino
#Inside domino script content
su notessrv -c "cd /opt/hcl/domino/notesdata; /opt/hcl/domino/bin/server"
After all, it seems the script "domino" doesnt run automatically...