Help on X Window service


 
Thread Tools Search this Thread
Operating Systems Solaris Help on X Window service
# 1  
Old 08-11-2009
Help on X Window service

Hi,

Need some help on the below issue or providing a pointer also would help

We have an application which will run as a service in Solaris (Sun4v) SPARC (The application will be displaying the popup messages).

For the service we are setting the display. As soon as the service starts we will get the popup messages.

But if we reboot the machine, the service for the application is online before the X Server comes up (May not be able to find the X Window Server), and the popup is not coming once the user log's into the machine.

Tried to set the Dependency with the X11-Server, but the Service is always in maintenance mode.

We are getting the following exception:

Could not initialize class sun.awt.X11GraphicsEnvironment


Is there any X Window service, we can set the dependency (or) is there any API in java to check whether the Graphics display is up (or) not?

Thanks,
Narendra
# 2  
Old 08-11-2009
how is the service for your programm startet?
# 3  
Old 08-11-2009
Hi,
Thanks for the reply.

1) Set the soft link using "ln -sf" for the XML file
2)"svccfg import" of the service
3)"svcadm enable" to enable the service

Thanks,
# 4  
Old 08-11-2009
so what are the dependend services for your service? they can be listed with "svcs -d/-D fmri".
you should find X11 in the output of "svcs -d fmri" for your service.
# 5  
Old 08-11-2009
Hi,
Below are the dependencies we have for the service in the XML

<dependency name="network" grouping="require_all" restart_on="none" type="service">
<service_fmri value="svc:/milestone/network:default" />
</dependency>

<dependency name="root" grouping="require_all" restart_on="none" type="service">
<service_fmri value="svc:/system/filesystem/root:default" />
</dependency>

<dependency name="autofs" grouping="require_all" restart_on="none" type="service">
<service_fmri value="svc:/system/filesystem/autofs:default" />
</dependency>

Tried to set the dependency with the x11-server, but the service is always in maintenance mode. If i tried to enable/clear the x11-server service,again it is going to maintenance mode.
Is there any service we can depend on?

Thanks,
Narendra
# 6  
Old 08-11-2009
in your config file there are double quotes (") for the other services and single quotes (') for xserver... maybe this is a fault in your file?
# 7  
Old 08-11-2009
Hi ,
Sorry for the confusion, below is the xml file dependencies

<dependency name="network" grouping="require_all" restart_on="none" type="service">
<service_fmri value="svc:/milestone/network:default" />
</dependency>

<dependency name="root" grouping="require_all" restart_on="none" type="service">
<service_fmri value="svc:/system/filesystem/root:default" />
</dependency>

<dependency name="autofs" grouping="require_all" restart_on="none" type="service">
<service_fmri value="svc:/system/filesystem/autofs:default" />
</dependency>

As i said earlier, tried to set the x11-server dependency, which is always in maintenence mode.
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Run one service after another service has finished - systemd

Hi all I would like to know how to run task2.service after task1.service has finished. task1.service has a timer (task1.timer), that makes it run every 5 minutes OnCalendar=*:0/5task2.service is basically a script, that has to work on the files created after task1 has finished. This is what I... (2 Replies)
Discussion started by: guilliber
2 Replies

2. UNIX for Beginners Questions & Answers

Toggle between xterm window and standard terminal window

Is it possible to toggle back and forth between an xterm invoked from one tty, and a shell invoked from a different tty? I am running Centos 7 with KDE and booting in non-graphic mode. After logging in on the default window (/dev/tty1) , I can then use ALT-F2 to access a new window (/dev/tty2),... (1 Reply)
Discussion started by: rhgscty
1 Replies

3. Solaris

solaris samba configuration without wins service from authentication window server/Active directory

Hi All, We are using solaris samba server for our company project to provide access to code to our development team.Recently our ICT has disabled wins service on Active directory due which user are not able to connect to samba share and they are getting error "No logon server available" as samba... (2 Replies)
Discussion started by: sahil_shine
2 Replies

4. Red Hat

Maximizing X window without Window Switcher

Hi everyone! I have a strange situation. I'm running an NX remote Gnome desktop session. On the remote machine, there is a whole load of unsaved data in a window. A problem that I've been having with this NX session is that I can't load Gnome Applets, including the Window Switcher. So.. when I... (0 Replies)
Discussion started by: alexandicity
0 Replies

5. Windows & DOS: Issues & Discussions

window 2000 professional not pinging my window 98 system.

Hello, We someone help me resolve this problem. I have window 2000 professional, windows 98 and Unixware 7.0.1 on the network. I was able to establish connection with all. However, l was unable to ping window 98 from window 2000 professional. I was able to ping the window 2000 from the window... (10 Replies)
Discussion started by: kayode
10 Replies
Login or Register to Ask a Question