November 24, 2024, 07:27:54 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: How Do I start GUI Based Service during Linux boot process  (Read 8173 times)

Offline uday_kulk

  • New Member
  • Posts: 2
How Do I start GUI Based Service during Linux boot process
« on: July 21, 2004, 06: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

Offline GNUrag

  • Tux Awared
  • **
  • Posts: 41
    • http://tends.ourproject.org/~anurag
Re: How Do I start GUI Based Service during Linux boot proce
« Reply #1 on: August 03, 2004, 03:22:18 PM »
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...

Offline uday_kulk

  • New Member
  • Posts: 2
Re: How Do I start GUI Based Service during Linux boot proce
« Reply #2 on: August 04, 2004, 06: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.

Offline GNUrag

  • Tux Awared
  • **
  • Posts: 41
    • http://tends.ourproject.org/~anurag
Re: How Do I start GUI Based Service during Linux boot proce
« Reply #3 on: August 07, 2004, 11: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.