Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Xhost, Want to start xhost
zoechman
post Jul 16 2003, 10:24 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 16-July 03
Member No.: 1,114



I've installed RedHat Linux AS 2.1
Now I want to start xhost + when the server is comming up.
But I don't know how to do this.

To start xhost + in /etc/rc5.d does not work.
Is there a file where I can insert to start xhost?
Go to the top of the page
 
+Quote Post
Joey
post Jul 16 2003, 10:25 AM
Post #2


LinuxHelp Admin
*******

Group: Admin
Posts: 1,096
Joined: 18-September 02
Member No.: 1



Try placing the command in /etc/rc.d/rc.local
Go to the top of the page
 
+Quote Post
zoechman
post Jul 17 2003, 08:53 AM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 16-July 03
Member No.: 1,114



QUOTE (Joey @ Jul 16 2003, 10:25 AM)
Try placing the command in /etc/rc.d/rc.local

I want to start xhost before the Oracle instance comes up.
Oracle sarts /etc/rc5.d/S96oracle

Do You have another idea?
Go to the top of the page
 
+Quote Post
Joey
post Jul 17 2003, 09:42 AM
Post #4


LinuxHelp Admin
*******

Group: Admin
Posts: 1,096
Joined: 18-September 02
Member No.: 1



I'm not familiar with screwing around with init scripts but why not just disable oracle from starting up automatically and then have it run from rc.local after xhost starts.
Go to the top of the page
 
+Quote Post
JRandomHacker
post Aug 10 2003, 10:36 PM
Post #5


Whats this Lie-nix Thing?
*

Group: Members
Posts: 4
Joined: 10-August 03
Member No.: 1,243



Hello,

QUOTE
To start xhost + in /etc/rc5.d does not work.


When you created the file in /etc/rc5.d, did you give the script a lower number that S96? In other words, create a file called S95xhost in /etc/rc5.d with the following.

#!/bin/bash
xhost +


The Sxx prefix on the filename sets the order in which things come up, so by prefixing the file S95, it should come up before Oracle.


--------------------
J. Random
Domain Administrator
JANDE Computing, LLC
Go to the top of the page
 
+Quote Post
hughesjr
post Aug 11 2003, 05:46 AM
Post #6


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



Also you don't necessarily have your full PATH in startup scripts ... so use the full path to the executable in the script ...

To find the full path to xhost, use the command:

which xhost from the command prompt...mine is at:

/usr/X11R6/bin/xhost

then change the line in the rc5.d script to :

/usr/X11R6/bin/xhost +

---------------------
I assume that you are locating the actual script ... called something like xhost, in /etc/init.d and then creating a link to the file like this from within /etc/rc5.d

ln -s ../init.d/xhost S95xhost
---------------------

If the startup of xhost is tied to oracle (and the oracle user) ... then you must do it as the oracle user ... you must either change the xhost script to do it like this:


QUOTE
#!/bin/bash
su - oracleuser -c '/usr/X11R6/bin/xhost +'


OR

edit the /etc/init.d/oracle script and add it as a line in the start section of that script....the line would be:

/usr/X11R6/bin/xhost +


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th October 2017 - 10:19 PM