[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Others  |  Miscellaneous  |  Topic: How Do I start GUI Based Service during Linux boot process
The LinuxSolved.com GNU/Linux User Communit - Forum
Welcome to LinuxCommunity You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: How Do I start GUI Based Service during Linux boot process  (Read 1187 times)
0 Members and 1 Guest are viewing this topic.
uday_kulk
New Member

Offline Offline

Posts: 2


View Profile
« on: July 21, 2004, 02:15:20 AM »

We have a GUI based socketserver.sh service, This service must be run in GUI based only in KDE, GNOME and X11 based only. May be this service coudn't work on Linux Text terminal. Only work on X-terminal windows. Becauze We had tried using Text-mode these service coudn't work. After that We have tried on KDE X-terminal it will work fine. (Just Double click on that .sh file it will be execute.)

But now we want to run these service duing linux boot process (like other linux service run in boot process eg. network, sendmail, smb, httpd etc.)

We have tried following option to run our .sh file during linux boot process.

1) In /etc/rc.d/rc.local
/root/SocketServer/./Socketserver.sh # (My .sh file path)
But it is not working.

2) In /etc/rc.d/rc3.d
ln -s /root/SocketServer/./Socketserver.sh S99socketserver
we create a symbolik link with our .sh file and run after all service running.
But it is not working.

In this case our Linux Server is in Onsite Location. We don't have GUI based access like VNC, Xserver etc. Right now we are accessing our machine Using SSH (22).

And even no human body is touch physically to enter username and password.


Additon Information :
1) We are accessing our Linux Server from our Onsite Location using SSH.
2) Currnetly My Linux server RunLevel is 5 (Default Graphcally Interface)

Required Solution :
1) Is there any way we can start our service during linux bootup process.
2) Is there any way we can run our service on kernel level..

Hope you will get proper senario.

Thanks in Advance.

Pls. respond me as earlier as possible.

Regards
Uday Kulkarni
uday.kulkarni@saterisystems.com
Logged
GNUrag
Tux Awared
**
Offline Offline

Posts: 41


View Profile WWW
« Reply #1 on: August 03, 2004, 11:22:18 AM »

Quote from: "uday_kulk"
We have tried following option to run our .sh file during linux boot process.

1) In /etc/rc.d/rc.local
/root/SocketServer/./Socketserver.sh # (My .sh file path)
But it is not working.

Please specify the distribution of your Linux... The place where linux looks for autostart scripts is different for redhat and debian...
Logged
uday_kulk
New Member

Offline Offline

Posts: 2


View Profile
« Reply #2 on: August 04, 2004, 02:11:36 AM »

Quote from: "GNUrag"
Quote from: "uday_kulk"
We have tried following option to run our .sh file during linux boot process.

1) In /etc/rc.d/rc.local
/root/SocketServer/./Socketserver.sh # (My .sh file path)
But it is not working.

Please specify the distribution of your Linux... The place where linux looks for autostart scripts is different for redhat and debian...

I am using Red Hat 7.3.
I will give u brief idea about my service.

My Service should be run on Linux Java Console (X-terminal).
But when linux systems boots it is used text based console (like run level 3) and after all the services ran it will give you Graphical Login Window for username and password. So during this Graphical Windows come up my service should be run (as My service need X-Windows).
and I am using KDE.
Logged
GNUrag
Tux Awared
**
Offline Offline

Posts: 41


View Profile WWW
« Reply #3 on: August 07, 2004, 07:03:16 AM »

Quote from: "uday_kulk"
uday_kulk"]We have tried following option to run our .sh file during linux boot process.

1) In /etc/rc.d/rc.local
/root/SocketServer/./Socketserver.sh # (My .sh file path)
But it is not working.
the above commands are not syntactically correct

first find out your rcX.d directory. where X=1 to 6. For redhat it is usually /etc/rc.d/rc5.d this is the directory whose scripts are executed when system enters into runlevel 5

now assuming that your file that has to be executed is in /usr/SocketProgram/SockeServer.sh then you have to give,

# cd /etc/rc.d/rc5.d
# ln -s /usr/SocketProgram/SocketServer.sh ./S99socketserver


just make sure that this server program does not try to open display.
Logged
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
   

 Logged
Pages: [1]
  Print  
 
Jump to:  

Welcome, Guest. Please login or register.
Did you miss your activation email?
December 01, 2008, 08:42:13 PM

Login with username, password and session length
Navigation
Recent Discussions
[November 29, 2008, 02:23:49 PM]

[November 29, 2008, 02:14:14 PM]

[November 29, 2008, 04:00:36 AM]

[November 28, 2008, 07:05:28 AM]

[November 28, 2008, 07:04:39 AM]

[November 28, 2008, 06:58:16 AM]

[November 28, 2008, 06:47:09 AM]

[November 26, 2008, 11:53:32 AM]

[November 26, 2008, 04:00:22 AM]

[November 25, 2008, 06:44:47 PM]
Members
Total Members: 6252
Latest: rash31
Stats
Total Posts: 8285
Total Topics: 2257
Online Today: 34
Online Ever: 111
(June 28, 2007, 06:47:29 AM)
Users Online
Users: 0
Guests: 12
Total: 12
Privacy Policy| Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Theme & TinyPortal v0.9.8 © Bloc