How to restart services in windows and solaris environment?

I need to start services running in windows and solaris platforms with java code. I have a fair idea how to do in C++ . So wondering if same can be done with java. .. Please help me out!
Thanx

you may also like to look at the wrapper project on source forge. It lets you set up services under any O/S with full control of the JVM that is running.
Btw my previous answer only helps you under MS, didn't notice that you wished to know how to do it under unix. If its a non-java service, you will need to determine what platform your on and then perform the appropriate action.

Similar Messages

  • Creating tool will restart services both windows and web also restarting servers

    Creating tool will restart services on IIS and WINdowns after patching 
    I have a task to develop tool which check what services are down after patching 
    both (windows services) services.msc + IIS (web services) I need restart manually to take remote of MMC and go to that server 
    I need to take them out on single portal also I want to go desired log path, what windows ready made utility I can use except MMC
    --Himanshu Kulkarni

    Hello,
    The Windows Desktop Perfmon and Diagnostic tools forum is to discuss performance monitor (perfmon), resource monitor (resmon), and task manager, focusing on HOW-TO, Errors/Problems, and usage scenarios.
    Since your post is off-topic, I am moving it to the
    off topic forum.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Dual Booting Windows and Solaris

    Hi
    how do i dual boot windows and solaris
    Do i install windows first and then solaris or do it the other way around..?
    how do i make sure that Windows and Solaris appear in my boot options..?
    Is their a guide on doing this...?
    Thanks
    Liam

    Hey I did a quick google search for you. So I havent tried this method myself but it sounds reasonable.
    The text below is from the following link:
    http://www.hccfl.edu/pollock/AUnix1/DualBoot.htm
    "Solaris boot loader
    Partition the drive to leave at least 2GB of space available for Solaris;
    more drive space is desirable.
    As with Linux, install Windows first then Solaris.
    Do not use the Installation CD but boot and install
    from Software CD 1.
    If you accept the default partitioning scheme which
    the installer provides you will soon run out of space in
    your / and /usr partitions since only enough space is
    allocated to install the system.
    All extra space is allocated to /export/home.
    A typical installation on a 4.5GB partition might look
    something like this:
    Filesystem Size Used Avail Use% Mounted on
    /dev/dsk/c0d0s0 900M 536M 310M 64% /
    /dev/dsk/c0d0s1 334M 109M 192M 36% /var
    swap 671M 8.0k 671M 1% /var/run
    swap 671M 8.0k 671M 1% /tmp
    /dev/dsk/c0d0s5 845M 222M 565M 29% /opt
    # (FAT32 partition):
    /dev/dsk/c0d0p0:1 5.0G 3.3G 1.6G 66% /c
    /dev/dsk/c0d0s7 1.1G 92M 954M 9% /export/home
    /dev/dsk/c0d0s4 752M 225M 474M 33% /usr/local
    The Solaris boot selector enables you to choose either
    Solaris or Windows with Solaris as the default.
    (I prefer grub or lilo!)
    To mount FAT under Solaris:
    # mount -F pcfs /dev/dsk/c0d0p0:c /dos (or �:1�?)
    And the vfstab file:
    /dev/dsk/c0d0p0:c - /dos pcfs - yes -
    To create a GRUB boot floppy, follow these steps:
    $ mkfs -t ext2 /dev/fd0
    $ mount /dev/fd0 /mnt/fd0
    $ mkdir /mnt/fd0/boot /mnt/fd0/boot/grub
    $ cp /boot/grub/stage[12] /boot/grub/grub.conf \
    > /mnt/fd0/boot/grub
    $ /sbin/grub --batch <
    Hope this helps!
    /Oscar

  • Does Solaris publish a feature / function mapping of container services between Docker and Solaris ?

    Docker is getting huge attention but most consider it not ready for production.  Does Solaris publish a feature / function mapping of container services between Docker and Solaris ?
    Solaris containerization has been battle tested in production for many, many years.

    You need to understand how IPMP is used within Sun Cluster. Start reading at
    http://docs.sun.com/app/docs/doc/819-2968/6n57jmghj?a=view and
    http://docs.sun.com/app/docs/doc/819-2969/6n57kl141?a=view
    for a brief description. In a nutshell - the IPMP group is providing availability on the interface level for each node, so that a single NIC failure is not resulting into a service loss.
    The IP adresses you configure directly (ie. via /etc/hostname.* setup) are always considered local to a given node.
    In order to configure highly available IP adresses, which move between nodes and which should be used for the application you make highly available, you must use the SUNW.LocgicalHostaname or SUNW.SharedAdress resource types. Have a look at
    http://docs.sun.com/app/docs/doc/819-2974/6n57pdjtt?a=view on how to configure them.
    Greets
    Thorsten

  • I'm trying to print from a full size 30x42 pdf of an AutoCAD file.  I only want to print an 8 1/2 x 11 portion, in scale.  How do I select the window and print in scale on my 8 1/2 x 11 printer?

    I'm trying to print from a full-size, 30x42 pdf of an AutoCAD file.  I only want to print an 8 1/2 x 11 portion, in scale.  How do I select the window and print in scale on my 8 1/2 x 11 printer (Brother MFC-9340CDW)?

    You might be better off contacting an AutoCAD support group.

  • How can i use both Windows and Mac os at the same time on my iMac

    How can i use both Windows and Mac os at the same time on my iMac

    You can use Parallels desktop or VM Fusion to run both operating systems at the same time. Both programs work well, but I personally perfer VM Fusion.

  • Nagios windows and Oracle environment

    Hi Gurus,
    I'm planning to implement Nagios tool for SAP monitoring on windows and Oracle environment. Can any one help me on thisu2026u2026..??
    Regards
    Soumitra

    Dear Soumitra,
    The only requirement of running Nagios is a machine running Linux (or UNIX variant) and a C compiler. You will probably also want to have TCP/IP configured, as most service checks will be performed over the network.
    You can download that suggested plug-in. Extract it and read the Documentation available within that bundle.
    The Following links may provide more details.
    [http://nagios.sourceforge.net/docs/3_0/quickstart.html|http://nagios.sourceforge.net/docs/3_0/quickstart.html]
    [http://wiki.nagios.org/index.php/Main_Page|http://wiki.nagios.org/index.php/Main_Page]
    Also check this"Nagios Toolbox for Windows hosts"
    [Nagios Toolbox for Windows hosts|http://sourceforge.net/projects/ngtbx/] . Nagios Toolbox for Windows host is still in development.
    Regards,
    Bhavik G. Shroff

  • How to restart services?

    hi,
    we are using hyperion 11.1.1.3 version which is installed in linux server?Can anyone tell me how to restart the shared services server like we do in windows version...n 1 more question..
    how to start interactive reporting and financial reporting from linux server?if possible can u give me the path(example)
    Thanks in advance...

    Hi,
    If you want to stop and start all the services, (I am assuming the Hyperion Home, check as per ur HYPERION_HOME)
    Go to:
    1) /Hyperion/products/bin
    2) you will find stop.sh and start.sh
    If you want to start a specific service: (Assuming Tomcat, check the locatin of your application server)
    /Hyperion/deployments/Tomcat5/bin
    here you will find Shared Services, along with few more.
    use stopSharedServices9.sh and startSharedServices9.sh
    Cheers...!!!

  • How do I unclose a window and all its tab groups?

    I have at least 100 tabs open in 5 or so groups, and then had another window open with nothing important in it. The main window was closed by Windows restart, and then the window with nothing in it was closed. When I start Firefox, it only opens the unimportant window, and the tab group page is empty. How do I get back my tabs and groups?

    Oh duh. I got it. Under History there is "Recently Closed Tabs" and also "Recently Closed Windows"

  • How to Create Pop up window and assign values to the table in it

    Hi All,
      I have a code which checks for duplicate value in the database and displays that duplicate record. I want to put the duplicate record value in a table of a popup window. Can you please tell me how do i acheive this?
    I tried the below code for creating a popup but most of the methods used here are deprecated. Please help
    IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows(
    "MyWindowName");
    // create the Window
    IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo, true);
    window.setWindowPosition(WDWindowPos.CENTER);
    window.setTitle("WindowTitle");
    // Save WindowInstance in Context
    wdContext.currentContextElement.setWindowInstance(window);
    // and show the window
    window.open();
    Regards
    Suresh

    Hi Suresh,
    "createModalWindow" is not a depricated method.
    Check this code.
    IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows(
              "SalesAreaWindow");
    //             create the Window
              IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
              window.setWindowPosition(WDWindowPos.CENTER);
              window.setTitle("Sales Window");
              window.setWindowSize(100,100);
    //             Save WindowInstance in Context
              wdContext.currentContextElement().setWindowInstance(window);
    //             and show the window
              window.show();
    "WindowInstance" is the context attribute of type "com.sap.tc.webdynpro.services.session.api.IWDWindow"
    Re: opening a new window on lead select in a table!!!
    Regards,
    Mithu

  • How to Get the Login Window and/or Bypass Login Items?

    Greetings, folks!
    This is a silly question, but the old standby of “hold down the shift key” doesn’t work in 10.6.1:
    What key(s) need to be pressed to get the LogIn window and then after LogIn, to bypass LogIn Items?
    Thanks!!
    Richard Fairbanks

    Not here, on a fresh (erased) install.
    Pressed either before or after the initial gray Mac appears, the shift key does not access the LogIn screen. It is possible to bypass the account’s LogIn items by holding down the shift key after the LogIn screen has been called and successfully commenced, but how does one call the Login screen when the Mac is normally set up for automatic login?
    It used to be the shift key . . . 
    Thanks!

  • MARS - NFS on Unix Services for Windows and deleting files

    Hello !
    I've prepared NFS server on W2k3 server with Unix Services for Windows installed. It works OK, the only problem is moveing/deleting files and folders. It seems like a problem with permissions for anonymous user. Does anybody have similar experience ?

    If you receive the following error message "Error ./pnarchiver Thread 2051:PN-0102:SQL error: ORA-01005: null password given; logon denied" then there is a Problem with archiving to NFS server. The directories for the archiving are properly created on the server but those directories remain empty. The workaround is that an inter operability issue exists between MARS and CygWin NFS server running on Windows 2003 server. To work around such inter operability issues, replace the NFS server with Microsoft Windows Services for Unix.

  • [SOLVED] How to restart services compatibly with SysVinit

    I'm collaborating on a Kubuntu user's package of scripts for Thinkpad X220 Tablets.  As part of the installation process of the package, the acpid daemon must be restarted to reload newly installed ACPI hooks.  On Kubuntu, the command to restart acpid is:
    service acpid restart
    According to this page, that should work with systemd, as well.  However, this does not work on my Arch Linux system because the 'service' executable does not exist on my PATH.  There is a 'service' executable in the pm-utils package, but it depends on the existence of a SysVinit script in /etc/rc.d; Arch uses a systemd service file instead.  (Besides, why would something like this be in the pm-utils package, not systemd?)
    Using the native systemd command
    systemctl restart acpid
    works fine for me, but it would be nice to use a single command that's compatible for both systems because it needs to go into a makefile that is used on both systems.  Is it possible to use the same command under SysVinit and systemd to restart a service?
    Last edited by kwehmu (2013-11-12 06:37:39)

    progandy wrote:
    The right way to detect systemd would be this:
    if command -v systemd-notify >/dev/null && systemd-notify --booted; then
    echo SYSTEMD
    else
    echo "SOMETHING ELSE (call rc.d, service, ...)"
    fi
    Thanks, that's helpful.  I'm still wondering why 'service <name> restart' doesn't work, though.  According to the documentation on systemd's website, it should.  Why do you think it doesn't work?  (Is the documentation incorrect, am I misreading the documentation, is 'service' part of another package, etc?)
    tomk wrote:Absolutely, this should be left to the user. The Arch way to handle this is with a post-install message, nothing more.
    That makes sense, especially for restarting services.  I haven't found any guidelines, though, on what should/shouldn't be included in installation hooks.  For example, 'media-player-info' runs 'udevadm hwdb --update' after installation to update udev's hardware database, and font packages such as 'ttf-dejavu' run multiple commands to update the font database.  What are some guidelines (or where can I find them) on what I should/shouldn't include?

  • How to export for both windows and mac users

    I'm new to the video stuff, so i have a few questions. i am planning to post videos on my blog. I want to have them in a format that both windows and mac users can play. is this a possibility or will i have to export .wmv for windows and quicktime for mac? i realize that windows users can download quicktime, but i either want the video to be viewable in a format that can be read by all without having to download anything (might be too big a wish :o) ). if i can't do that, then i'd like to have 2 links - one for quicktime and one to the .wmv. in this case, how to i export a .wmv file? i don't see that option anywhere on the share menu? do i need to buy quicktime pro? that leads me to another questions - if i have imovie, do i need quicktime pro? so far i'm having a hard time figuring out what quicktime pro has that imovie doesn't....thanks in advance!

    I'm new to the video stuff, so i have a few questions. i am planning to post videos on my blog. I want to have them in a format that both windows and mac users can play. is this a possibility or will i have to export .wmv for windows and quicktime for mac? i realize that windows users can download quicktime, but i either want the video to be viewable in a format that can be read by all without having to download anything (might be too big a wish :o) ).
    Posting to YouTube and providing a URL link might be the most universal method of playback although quality may be on the weak side.
    if i can't do that, then i'd like to have 2 links - one for quicktime and one to the .wmv. in this case, how to i export a .wmv file?
    WMV is a proprietary compression format. You will either have to purchase the authorized QT components from Flip4Mac or purchase a separate open source converter application like Visual Hub.
    i don't see that option anywhere on the share menu?
    Any you won't even if you purchase and install the QT component -- iMovie '08 only exports to QT compression formats.
    do i need to buy quicktime pro?
    It wouldn't help. Getting QT Pro only unlocks editing and conversion features. It does not add any additional codecs which don't already have installed.
    if i have imovie, do i need quicktime pro? so far i'm having a hard time figuring out what quicktime pro has that imovie doesn't.
    As indicated above, QT Pro allows you to convert to/from any compression formats for which you have working import/export QT components. This can already be be done using GarageBand and iMovie. GarageBand allows you to access any installed QT import/export component while iMovie '08 restricts you to Apple QT components. In addition, QT Pro allows you to create player displays with multiple audio/video tracks, gives you ability to layer graphic elements (e.g, create watermarks, create pictures-within-pictures, etc,), allow the viewer to switch between alternate audio and/or video tracks, and may other things.
    ADDED: If you really want to see what QT Pro can do, check out QTKirk's examples on his DotMac account.
    Message was edited by: Jon Walker

  • How to call functions in windows or Solaris in servlet?

    Hello,
    Does anyone know if there is a way for servlets to call functions in windows or solaris shell command????
    Thanks :)

    Checkout the Runtime.exec family of methods.
    I would think carefully if calling a shell script or batch file from a J2EE web component is something you really want to do though.

Maybe you are looking for

  • Compatibility fcpx 10.2.1 / fcpx 10.1.1

    Hi, I'm just starting out with tcp and have been practicing on the trial version of fcpx 10.2.1 which is going to run out in 2 days.  I now have to complete what I was doing on another computer which has fcpx 10.1.1.  I can't open the project and whe

  • Error Message After Completed iTune Download on Vista

    I am a new user of Apple Products. I am experiencing difficulty downloading iTunes to my PC (Vista) system. After a few minutes of downloading an erro message appears "Could not access network location %APPDATA%\" Could someone help me resolve this s

  • Problems updating new version

    I am trying to update and have tried all fixes as far as uninstalling, rebooting, enabling script, add ons etc.  The problem I am having is that the download will go through the 1st part when it asked me if I want to run.  After I hit run nothing els

  • Record/transcode hold music

    is there software available to record audio to g.729 for MOH? We have some stuff but it sounds pretty bad and I would like to record straight to g.729 thanks

  • Copy and  no copy

    Hi Friends.... tell me about COPY and NO COPY.....with eg.. also tell me difference between them thanx in advance