LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-22-2024, 02:33 AM   #1
louis.cheung
LQ Newbie
 
Registered: Feb 2024
Posts: 1

Rep: Reputation: 0
How to create auto startup script in redhat 9.2?


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...
 
Old 02-22-2024, 07:50 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by louis.cheung View Post
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
Code:
su notessrv -c "cd /opt/hcl/domino/notesdata; /opt/hcl/domino/bin/server"
After all, it seems the script "domino" doesnt run automatically...
The first hit in Google for "how to run a script at startup red hat 9" is:
https://access.redhat.com/solutions/1751263

...a link to Red Hat's website customer portal for RHEL 9, with complete instructions. Since this is for your work and a customer who is paying you, they should also have the Red Hat credentials to log in.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure auto login & after login auto startup some program. hocheetiong Linux - Newbie 1 02-18-2008 12:49 AM
auto execute shell script on startup slackwbas Slackware 9 02-27-2005 10:26 AM
auto-completion - how does it work & can my script args auto-complete? BrianK Programming 1 06-11-2004 04:51 PM
How to auto load a script on KDE startup kam_kenneth Linux - Newbie 2 05-03-2004 04:55 PM
Getting firewall script to auto-run at startup lrt2003 Linux - Newbie 2 04-25-2004 02:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration