Issue in Solaris(Service starting and touching a file)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dheeraj Joshi
    Recognized Expert Top Contributor
    • Jul 2009
    • 1129

    Issue in Solaris(Service starting and touching a file)

    Since UNIX forum is for Linux,Unix,BSD and my issue is regarding Solaris i am posting it in lounge.....

    In Linux during a service start via init.d a file under /var/lock/subsys/(servicename) is touched....

    In Solaris there is no folder named /var/lock/ So does this mean, we need not to touch any file while starting the service via init.d.? Or the file need to be touched is in some other place....

    Regards
    Dheeraj Joshi
  • NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32645

    #2
    And since we don't allow technical questions in the Lounge I'm moving it to Miscellaneous (though I can move it to Unix if you prefer) :D

    Sorry Dheeraj, I couldn't resist that.

    Seriously though, not the Lounge. This is supposed to be a member chill-out area. Away from technical questions.

    Comment

    • Dheeraj Joshi
      Recognized Expert Top Contributor
      • Jul 2009
      • 1129

      #3
      Sorry...... I did not noticed this misc section is back.....

      Regards
      Dheeraj Joshi

      Comment

      • NeoPa
        Recognized Expert Moderator MVP
        • Oct 2006
        • 32645

        #4
        No worries Dheeraj.

        Looking again though, it seems to me that Solaris is actually a version of Unix. It's just Sun's particular flavour. I'll move it in there and we'll see what help you get then.

        Comment

        • sicarie
          Recognized Expert Specialist
          • Nov 2006
          • 4677

          #5
          What version of solaris?

          There are different implementations of this, depending on what applications and what versions you're using. Is it a specific application, or just any old system app?

          Comment

          • numberwhun
            Recognized Expert Moderator Specialist
            • May 2007
            • 3467

            #6
            @dheerajjoshim Why don't you just give us the output of:

            Code:
            uname -a
            from the command line, that will give us what we need to know so that we may help you.

            And NeoPa is absolutely correct. Solaris IS one of the flavors of Unix. So that you are aware, here is a list of the different flavors of Unix.


            Regards,

            Jeff

            Comment

            • NeoPa
              Recognized Expert Moderator MVP
              • Oct 2006
              • 32645

              #7
              Well Dheeraj, it seems like you're in the best of hands now :)

              Comment

              • Dheeraj Joshi
                Recognized Expert Top Contributor
                • Jul 2009
                • 1129

                #8
                Yeah.... Solaris version is 5.10... And yes it is a specific application....

                Regards
                Dheeraj Joshi

                Comment

                • NeoPa
                  Recognized Expert Moderator MVP
                  • Oct 2006
                  • 32645

                  #9
                  Don't forget to run uname -a and post the results here Dheeraj ;)
                  Last edited by NeoPa; Mar 1 '10, 11:56 AM. Reason: Fixed typo

                  Comment

                  • Dheeraj Joshi
                    Recognized Expert Top Contributor
                    • Jul 2009
                    • 1129

                    #10
                    rune ..?

                    Code:
                    uname -a
                    Gave me this.....

                    SunOS solaris19 5.10 Generic sun4u sparc SUNW,Sun-Fire-V210

                    Regards
                    Dheeraj Joshi

                    Comment

                    • NeoPa
                      Recognized Expert Moderator MVP
                      • Oct 2006
                      • 32645

                      #11
                      Rune? I never said that!!

                      :D It was a typo I'm afraid.

                      Comment

                      • sicarie
                        Recognized Expert Specialist
                        • Nov 2006
                        • 4677

                        #12
                        It looks like Solaris 5 was where they started to use svcs, but hadn't really gotten everyone to completely switch over yet.

                        You said this was a specific app - is it one you are attempting to develop, or maintain? If it's one you're developing, I found the following:



                        That's the recommended method for locking files in Solaris. (found by Google searching 'Solaris 5 lock file?' if you were curious)

                        If this is an app you have purchased, have you asked the vendor (or online support team) where they implemented their lock file?

                        Comment

                        • Dheeraj Joshi
                          Recognized Expert Top Contributor
                          • Jul 2009
                          • 1129

                          #13
                          This App was developed by somebody else, but we have to maintain it and develop new things on top of it....

                          Regards
                          Dheeraj Joshi

                          Comment

                          • sicarie
                            Recognized Expert Specialist
                            • Nov 2006
                            • 4677

                            #14
                            Did you take a look at that link? Do you know what type of file lock that application is using? What language is it written in?

                            Comment

                            • Dheeraj Joshi
                              Recognized Expert Top Contributor
                              • Jul 2009
                              • 1129

                              #15
                              It is written in C.... Yes, i have looked into it...

                              Regards
                              Dheeraj Joshi

                              Comment

                              Working...