How to setup startup script in Solaris 10

Could anyone point me out how to setup a startup script at run level 3 or 2 in solaris 10 ?
Any previous solaris such as 9, 8, I just write a script and put in /etc/init.d/, then link it to run level 3 or 2. But in solaris 10 is different now.
I could not find any in the manual.
Thanks.

Could anyone point me out how to setup a startup
script at run level 3 or 2 in solaris 10 ?
Any previous solaris such as 9, 8, I just write a
script and put in /etc/init.d/, then link it to run
level 3 or 2. You can do the same thing in Solaris 10.
But in solaris 10 is different now.There are alternative methods that are recommended (creating a service via a manifest file), but the old startup stuff still works just fine. You don't get the benefits of monitoring and fine-grained dependencies with the legacy startup scripts.
I could not find any in the manual.An older doc is http://mediacast.sun.com/share/bobn/SMF-migrate.pdf. You might also check the SMF FAQ.
http://opensolaris.org/os/community/smf/faq/ Section 4 is on manifest development.
Darren

Similar Messages

  • How to setup  internet connection in  Solaris 10 X86

    All
    I have installed Solaris 10 X86 in my intel laptop. I want to setup internet connection in solaris. Can you please provide me some info on this ? I have Comcast broadband cable modem installed at home.
    Thanks
    Murali

    user8473723 wrote:
    All
    I have installed Solaris 10 X86 in my  intel laptop. I want to setup internet connection in solaris. You need to determine whether your NIC is even supported.
    (but you kept that particular information a secret in your forum post)
    If the Ethernet chipset is supported, you then need to install the drivers.
    By the way, very few wireless networking chipsets are supported.

  • How to setup Internet connection in Solaris 10

    Hi All,
    I recently installed Solaris 10 in my laptop as a guest OS which is having Host OS of Windows 7 by using Virtual Box.
    I shared all my hardwares and network connection and still I cannot use the internet connection in my guest OS (Solaris 10).
    I'm new to this could anyone please provide steps to set up internet connection in Solaris 10???
    Thanks,
    Mahesh

    user8473723 wrote:
    All
    I have installed Solaris 10 X86 in my  intel laptop. I want to setup internet connection in solaris. You need to determine whether your NIC is even supported.
    (but you kept that particular information a secret in your forum post)
    If the Ethernet chipset is supported, you then need to install the drivers.
    By the way, very few wireless networking chipsets are supported.

  • How to add startup script to OSX?

    Hi,
    Now , There is an applicaition(run as root).
    I want to add it to startup items via script.
    On Linux, The script can be added to /etc/rc.d/rc.local.
    Another,The application run as root,
    Every time use sudo app, and user has to input password,
    how to run it without any input?
    If it is impossible, I need to remove user role check from application?

    Yes, I am sure of that they are owned by root,
    and have same mode(File/Dir) as the example.
    This is not useful yet???
    I give the 3 files content as follow:
    1: upsilon
    #!/bin/sh
    . /etc/rc.common
    StartService ()
    ConsoleMessage "Starting Megatec System tech. UPS monitor"
    /etc/upsilon/upsilon start
    StopService ()
    ConsoleMessage "Stopping Megatec System tech. UPS monitor"
    /etc/upsilon/upsilon stop
    RestartService () { StopService; StartService; }
    RunService "$1"
    2:StartupParameters.plist
    Description = "Megatec System tech. UPS monitor";
    Provides = ("upsilon");
    Requires = ("Network");
    OrderPreference = "Late";
    Messages =
    start = "Starting Megatec System tech. UPS monitor";
    stop = "Stopping Megatec System tech. UPS monitor";
    3:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
    <plist version="0.9">
    <dict>
    <key>Starting Megatec System tech. UPS monitor</key>
    <string>Starting Megatec System tech. UPS monitor</string>
    <key>Stopping Megatec System tech. UPS monitor</key>
    <string>Stopping Megatec System tech. UPS monitor</string>
    </dict>
    </plist>
    There are any problems on the files?

  • How to Setup Multicast Address on Solaris 2.6 (Back to the well again)

              Basic Cluster Query,
              Several weeks ago, I was thrashing about trying to verify the syntax for setting
              up a multicast address on Solaris 2.6 in preparation for implementing Weblogic
              6.0 clustering. The command syntax was:
              ifconfig {interface}:{virtual#} plumb
              ifconfig {interface}:{virtual#} {multicast_address} up
              The commands succeeded on the first and second servers without errors, but unbeknownst
              to me there were errors reported on the second host concerning duplicate address.
              The errors were:
              unix: WARNING: IP: Hardware address '08:00:20:a6:ed:0a'
              trying to be our address 237.000.000.008!
              The server halted today after several weeks; however, it is not clear whether
              the multicast address caused the halt. Neither Weblogic nor Sun documentation
              have been helpful. Can anyone provide guidance on setting up multicast address
              on Solaris 2.6?
              Bewildered,
              Dan
              

    Dan,
              I don't think that BEA specifically takes any stand regarding the
              configuration of operating systems. The problem is that the
              administration of Unix machines and networking is a very complex and
              sensitive subject for most companies (e.g., they have entire departments
              dedicated to this) and BEA tries not to enforce any more configuration
              specifications than it has to.
              With regards to multicast, most newer versions of the major operating
              systems (including Solaris) have support for multicast turned on "out of
              the box". However, it is possible for your administrator to muck around
              with your machine's network settings so that multicast does not work
              properly or is disabled entirely. Most people in BEA support do not
              know enough about low-level Unix TCP/IP administration to be able to
              properly guide you to "configure multicast" if it is not working
              properly. Even if they did, we wouldn't know what your administrator
              might have done or why they did what they did so it is generally best to
              get your Unix administrators involved because they really (should) have
              the knowledge of the machine's configuration.
              We do, however, provide a Java utility program called
              utils.MulticastTest that can help you to determine whether or not
              multicast is working correctly on your machine.
              Hope this helps,
              Robert
              Dan wrote:
              > Dennis,
              >
              > Thank you for the reply. I have tried working through the support line and
              > even opened a case, but BEA will not provide any guidance on system or platform
              > specific multicast addressing. They wouldn't even confirm the fact that "nothing"
              > had to be done in Solaris; however, I did not mention your comments. I don't
              > know why BEA takes such a position for common or well known architectures like
              > Solaris, AIX, or HP/UX. Thanks again for your comments.
              >
              > Sincerely,
              > Dan
              >
              >
              > "Dennis Munsie" <[email protected]> wrote:
              >
              >>Hi,
              >>
              >>Multicast addresses do not need to be set from the command line. Multicast
              >>addresses are independent of the normal IP address for an interface,
              >>and
              >>they are specified programatically when a socket is opened.
              >>
              >>--
              >>Dennis Munsie
              >>Developer Relations Engineer
              >>BEA Support
              >>
              >>"Dan" <[email protected]> wrote in message
              >>news:[email protected]...
              >>
              >>>Basic Cluster Query,
              >>>
              >>> Several weeks ago, I was thrashing about trying to verify the syntax
              >>>
              >>for
              >>setting
              >>
              >>>up a multicast address on Solaris 2.6 in preparation for implementing
              >>>
              >>Weblogic
              >>
              >>>6.0 clustering. The command syntax was:
              >>>
              >>> ifconfig {interface}:{virtual#} plumb
              >>> ifconfig {interface}:{virtual#} {multicast_address} up
              >>>
              >>>The commands succeeded on the first and second servers without errors,
              >>>
              >>but
              >>unbeknownst
              >>
              >>>to me there were errors reported on the second host concerning duplicate
              >>>
              >>address.
              >>
              >>> The errors were:
              >>>
              >>> unix: WARNING: IP: Hardware address '08:00:20:a6:ed:0a'
              >>> trying to be our address 237.000.000.008!
              >>>
              >>>The server halted today after several weeks; however, it is not clear
              >>>
              >>whether
              >>
              >>>the multicast address caused the halt. Neither Weblogic nor Sun
              >>>
              >>documentation
              >>
              >>>have been helpful. Can anyone provide guidance on setting up multicast
              >>>
              >>address
              >>
              >>>on Solaris 2.6?
              >>>
              >>>Bewildered,
              >>> Dan
              >>>
              >>
              >
              

  • How to create shell script on solaris "TOP" command

    Hi All,
    i need to write a shell script on unix top command.
    Requirement:
    In top command grep the more than 25% CPU utilization f60webmx process and that f60webmx process time stamp is more than 3HR's and also needs to grep the load average information in top command.
    Please help me some one.

    i need to write a shell script on unix top command.You have our permission to begin to do that.
    These forums are NOT for doing your work for you. They are here to provide assistance for YOUR work.
    I suggest you go get paper and pencil and write down all the steps you think you need to take to accomplish that. Write it down as if you were going to do that manually at the command prompt. Then put it all into a text file and save it with a file name of your script.
    When you have that "script", you can run it and examine whether it succeeds or whether it has errors. Work at it for a while and fix whatever errors might happen.
    When you are really, really stuck at it, you can paste your script into a reply of this thread and maybe someone will respond with suggestions for improvement.

  • Solaris 10 startup scripts

    how to replace the startup scripts from Solaris 9 or 8 to Solaris 10?

    how to replace the startup scripts from Solaris 9 or
    8 to Solaris 10?Why would you in the first place ?
    Solaris 10 is fully backwards compatible so there is no need to replace anything. You can easily put them in their regular directories (/etc/init.d for starters) and thats that. So the SMF difference really doesn't stand in the way of an upgrade from an older Solaris version to 10.
    When you're all settled you can always look into SMF, it is worth the effort.

  • OpenSSH: How to setup non-interactive SSH/SFTP/SCP

    Hi,
    Anyone has any idea how to setup/configure OpenSSH on Solaris (Client) & Windows (Server) for sftp/scp transfer in non-interactive host-based authentication.
    I need to setup this for secure file transfer from a solaris client to a windows server without having to enter a password. My external script will run in crontab to tap on sftp/scp for file transfer.
    Pls advise. thanks.

    I'd go for key-based authentication and simply don't provide a password for the key. You're on your own about how to implement this on Windows, so far I wasn't even aware Windows had a SSH service.

  • Setup Disk Mirroring on Solaris 8

    I need to know of how to setup Disk Mirroring on Solaris 8 on my SUN E250/E280
    Which manual collection, provide a step by step procedure to do it. Thanks.

    I assuming you're going to be using Sun disc management software ( DiskSuite) and not something like Veritas volume manager.
    There are some Sun infodocs on the sunsolve site ( sunsolve.sun.co.uk is the one I use ) that contain good step by step guides on how to mirror discs using Solstice Disksuite. Type in "disksuite faq" as keywords to search.
    Disksuite 4.2.1 comes with Solaris 8 ( this is the recommended version of DiskSuite you use with 8), but you need to make sure it was included as a package to install when the server was originally built). If it hasn't been installed, put the Solaris 8 cd 2 of 2 and do a package add on the following path /cdrom/sol_8_1000_sparc_2/Solaris_8/EA/Products.
    Pick disksuite and I generally add all the packages. You'll need to know the product a bit more if you want to pick and choose the components to install.
    Once done, you'll need to reboot the server and then begin to configure the discs. To understand the various concepts with disksuite you will need to read the manuals.
    I use the command line but there is a GUI tool supplied with the product called metatool to help you mirror your discs.
    As a high level overview this is what you need to do:
    Create a minimum of 3 state databases ( on a separate disc slice of about 5 megabytes in size, nothing else should use this slice )
    The discs you want to mirror should have the same partition table to keep life simple.
    I would create 6 databases, 3 on an individual slice.
    Then create your mirror devices which represent the various partitions you want to mirror from the primary disk. Then create your metadevices and attach the first set of mirrors to them.
    You need to issue a special command called metaroot to get the system to mount the root filesystem metadevice at boot time.
    At this stage I would then make a backup of /etc/vfstab and then edit it to mount your metadevices instead of the normal disc devices.
    I would then bounce the server to check it all works and the metadevices get mounted correctly.
    Create your second set of mirror devices on the secondary disc and add them to the appropriate metadevice ( using metattach )
    If the filesystems are very large it takes a few minutes for the disks to sync up, so don't bounce the server until this process has completed. You can run a check on disk synchronisation by doing metastat | grep sync
    Finally I would put the output from the command metastat -p into the /etc/lvm/md.tab file at the very end with some appropriate comments.
    This can seem a very onerous task at the beginning but once your clear on steps you need to run, the whole procedure is quite straightforware.

  • How to specify the webLogic server startup script to use different config.xml  file ??

    Hi,
    I have 2 weblogic startup scripts (startWebLogic.sh and
    startWebLogic_recovery.sh) for the same domain.
    startWebLogic.sh uses config.xml file.
    I would like to use config_recovery.xml as the configuration file for startWebLogic_recovery.sh
    How would I do this ?
    I am using WebLogic Server 6.1 on SunOS 5.8 / HP-UX 11.0.
    Appreciate any help.
    Regards
    Gunaseelan Venkateswaran

    I guess you're using Weblogic 6.1 with WLCS 3.5. I think you're supposed to work with one config.xml for the same domain, and not have a different config.xml.
    To start up different applications or EJBs, use the "target" property to control which applications to start up for the particular instance.
    YY

  • Office 2010 setup thru computer startup script

    I am trying to install Office 2010 (sp2 seperate in the updates folder) thru group policy startup script and configured with OCT .msp file. Also try to start Access Runtime 2010 with SP2 update in the updates folder.
    In group policy set run scripts asynchronisely disabled and run scripts visible enabled otherwise i could not see what the system was doiing also not when configiguring OCT with full display. The gpo settings lets the screens show during install so the user
    can see what happens.
    There is another problem that rises however: I have made 2 batchfiles and both are starting as a computer startup script in seperate gpo's (that is in another post). First the Accessruntime is installing, after that Office 2010 is running. Both are installed
    after login but only one of the 2 have SP2 installed (7015) in this case Accessruntime has it. When i run only the Office 2010 install and not the Accesruntime 2010 then Office 2010 standard has also SP2 installed (version 7015). When running both only Runtime
    has this sp2 and Office has 4763 this is without sp2 i believe.
    In both folders (Office en Runtime) are the update files .msp in the updates folder of the installation, so thats ok.
    Why is only 1 of the 2 installing the SP2 when running both?
    A second thing is when restarting the system and before the login screen appears a message: Upgradepatch cannot be installed by Windows installer becasue the upgraded program does not excist of the upgradepatch is not suitable for this program?
    Here is part of the batchfile:
    IF EXIST "c:\program files\Microsoft Office\Office14\WINWORD.EXE" (goto mkfile) ELSE (goto DeployOffice)
    :mkfile
    ECHO Office 2010 is reeds geinstalleerd>c:\temp\office.txt
    goto end
    :DeployOffice
    call cscript \\sharename\office2010\Offscrub03.vbs ALL /bypass 1 /q /s /NoCancel
    start /wait %DeployServer%\setup.exe /adminfile %DeployServer%\officeconfig.msp
    echo %date% %time% Setup ended with error code %errorlevel%. >> %LogLocation%\%computername%.txt
    Another batchfile
    start \\sharename\accessruntime2010\setup.exe /config \\share\accessruntime2010\config.xml
    REM echo %date% %time% Setup ended with error code %errorlevel%. >> %LogLocation%\%computername%.txt
    freddie
    after installing both runtime and office both have SP2 in updates folder:
    runtime 4763
    Office 2010: 7015
    So in this example runtme is installed without the SP2. installing runtime alone gives with SP2...
    The message is gone. There was a other policy inherited from above that caused the message. The only problem now is that when installing both, runtime 2010 with SP2 files and Office 2010 with SP2 files, then one of the two don't get the Sp2 installed, why
    is that?

    > In the bat file, I have a line that records if the install completes
    > successfully or failed.  I don't have any other logging in my
    > script.  Are you referring to something like GPO logging? I know that
    > the script runs because when I am looking at one of the PCs, I can
    So it is NOT GP related but rather your script fails?!? Put some "echo
    %~n0 %date% %time%>>Log-File-Of-Your-Choice.txt" in it to check what's
    going on. And put ">>Log-File-Of-Your-Choice.txt 2>&1" at the end of
    critical commands to capture their output.
    > I ran the gpresult /h command which shows all User Configuration
    > policies, but NOTHING appears under the Computer Configuration section.
    Admin commandline? If not, you don't see computer settings :)
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))
    Martin,
    I still did not figure out why the installation script did not work for some of the PCs, even though the PCs have the same image.  For the ones that don't work, I will install manually.  Can you please look at the screenshots of the GPO
    settings I am using, and let me know if there is any settings that I need to remove or add?
      Thanks

  • How to setup not start cf9 local server on PC startup of VISTA OS

    how to setup not start cf9 local server on PC startup of VISTA OS...? How to startup it manualy later if I wanted to?

    The same way you would for any other Windows service: use the Services app in your Control Panel.
    Adam

  • How to Setup an ACL over a Command in solaris 2.6

    Hi all,
    Has anyone have an idea on how to setup an ACL over a command
    in solaris 2.6 . i.e: to force a user (or a group) to enter a
    password to run a command (like mount and others).
    Thanks for your help.
    haed98.
    [email protected]

    Hi head98,
    You can set ACL using setfacl commands. This way you can exclusively assign read/write/execute permissions on command that you wish. But ACL doesn't prompt for passwords or you can set passwords using ACL. One way of doing this will be to create wrapper for commands which will prompt for passwd, compare them with /etc/shadow and then execute the real command.
    Hope this helps, Thanks. SUN/DTS

  • Ssh install on solaris core group installation - startup scripts?

    hi all,
    i have a fresh "core group" installation of solaris 11/06 now up and running.
    I have added the following pkg to get ssh running.
    bash-3.00# pkginfo |grep ssh
    system SUNWsshcu SSH Common, (Usr)
    system SUNWsshdr SSH Server, (Root)
    system SUNWsshdu SSH Server, (Usr)
    system SUNWsshr SSH Client and utilities, (Root)
    system SUNWsshu SSH Client and utilities, (Usr)
    so it is installed. I have manually created ssh_host_keys and I can start and use sshd/sftp -server. However I'm in need to find the best way of starting this up at boot. I have followed a link to Sun Blueprints for open ssh startup scripts.
    http://www.sun.com/blueprints/tools/ > secureshell-tools.tar.Z
    however this relies on prng (psuedo random number generator). my "default installation" of solaris 10 11/06 does not have this installed and ssh works fine, so I am reluctant to go down prng path.
    furthermore searching my "default installation" of solaris 10 11/06 i can not see any ssh startup scripts that I could heist
    please advise best practice

    fixed for now
    http://www.sun.com/bigadmin/content/selfheal/smf-quickstart.html > Enabling and disabling services
    since solaris 10, use "svcadm"
    ie
    mybox86# svcadm enable network/ssh:default
    very nice.

  • How to make at startup script that fits spread on open

    Hi there,
    Does anyone know how to make a startup script for InD CS6 that fit spread too screen when document open?
    I've tried this and it works but I've get a dialog that says "Object is not valid":
    #targetengine "session"
    main();
    function main(){
    var myEventListener = app.eventListeners.add("afterOpen", excuteScript);
    function excuteScript(){
    var myD = app.documents[0];
    app.layoutWindows[0].zoom(ZoomOptions.FIT_SPREAD);

    Hi Jump_Over and thank's for reply.
    I'm a total newbie when it comes to scripting.
    Can you show me how you mean?
    Jonas

Maybe you are looking for