9 Replies Latest reply on Nov 14, 2011 1:31 AM by BenoitJolly

    command line to restart WPE on MacOS X Server

    ActiveD

      Hi everybody,

       

      Does anyone know if there is a command line to restart correctly the WPE service on MacOS X Server ?

      I have been looking at the FTS but with no success...

       

      Thanks in advance for your help.

        • 1. Re: command line to restart WPE on MacOS X Server
          LyndsayHowarth

          Hi (Insert Name Here),

           

          I do think it is possible but can't find it in my notes nor in the HELP for fmsadmin.

           

          I think you should try:

           

          mac:~ mac$  fmsadmin Web Publishing STOP

           

          I've pasted the Terminal command list below

           

          Lyndsay

           

          Also see "Command line reference" in FileMaker Server Help:

              http://localhost:16000/admin-help/en

           

          Copyright (c) 2004-2007 FileMaker, Inc.  All rights reserved.

           

          mac:~ mac$  fmsadmin HELP COMMANDS

          fmsadmin commands are:

           

              BACKUP          Back up databases

              CLOSE           Close databases

              DISABLE         Disable schedules

              DISCONNECT      Disconnect a client

              ENABLE          Enable schedules

              HELP            Get help pages

              LIST            List clients, files, plug-ins, or schedules

              OPEN            Open databases

              PAUSE           Temporarily stop database access

              RESUME          Make paused databases available

              RUN             Run a schedule

              SEND            Send a message

              START           Start the Database Server

              STATUS          Get status of clients or files

              STOP            Stop the Database Server

          • 2. Re: command line to restart WPE on MacOS X Server
            ActiveD

            Thank you Lyndsay,

             

            We are aware of the "fmsadmin help commands" and use them a lot, we also had read the "command line reference".

            The Stop command can only apply to the "Adminserver" or to the "Server" but not to the WebServer...

             

            My question was to find a "FileMaker Supported way" to cleanly restart only the WPE without killing a process or so.

             

            The FileMaker Server having issues with the stack for the WPE AND the fmsadmin command lines, it seems a heavily loaded server should have those two services restarted from time to time. This is why we look for such a line.

             

            Best regards.

            • 3. Re: command line to restart WPE on MacOS X Server
              LyndsayHowarth

              That's why I suggested this format:

               

              mac:~ mac$  fmsadmin Web Publishing STOP

               

              I've seen something like this... and I know I tried it. You just have to find the right name for the process.

               

              It is not the webServer because that is Apache...

               

              It is either web publishing or web publishing engine that I recall (poorly). If I can find the document I clipped from, I will post it... (I must put all my terminal commands in a database ;-)

               

              Lyndsay

              • 4. Re: command line to restart WPE on MacOS X Server
                DarrenTerry

                Hi 5203319617FTN (sorry, you didn't include your signature or name, or I'd greet you by name):

                 

                The only thing I could find was for an old version of FM Server.  The command to use was:

                 

                sudo SystemStarter restart "FileMaker Web Publishing"

                 

                I don't know if that will work today or not.

                 

                regards,

                Darren

                 

                ******************************

                Darren Terry

                Pacific Data Management, Inc.

                FileMaker Certified Developer

                Phone: (408) 283-5900 x303

                darren_terry@pdm-inc.com

                http://www.pdm-inc.com/

                • 5. Re: command line to restart WPE on MacOS X Server
                  KojiTakeuchi

                  Hi, 5203319617FTN:

                   

                  I believe this command may help you.

                   

                  $ fmsadmin restart cwp

                  or

                  $ fmsadmin restart wpc

                   

                  These are not in help but it work fine.

                  You can use start/stop options as well.

                   

                   

                   

                  Koji Takeuchi <takeuchi@nemoux.com>

                  FileMaker 7-11 Certified Developer, Authorized Trainer

                  ------------------------------------------------------

                  FM-Tokyo                 | Knockin' on Seven's Door

                  www.filemaker.gr.jp      | www.sevensdoor.com

                  • 6. Re: command line to restart WPE on MacOS X Server
                    ActiveD

                    Hi Koji,

                     

                    As a matter of fact, we ended up noticing that you can type whatever you want like :

                    $ fmsadmin restart NON_EXISTING_SERVICE

                    The console does ask you wether you want to restart NON_EXISTING_SERVICE, and then, does not throw any error...

                     

                    But I tested your first command. It worked well. Thanks a lot.

                     

                    How did you find that command ? it is indeed not documented anywhere I know of (FTS, guides...).

                     

                    Best regards.

                    • 7. Re: command line to restart WPE on MacOS X Server
                      BenoitJolly

                      Hi,

                       

                      We have tested the command line, but it seems it is NOT working properly on a lot of occasions...

                       

                      That would be great to have a feedback from FileMaker's techies.

                       

                      On a newly installed MacOS server, when throwing :

                      $ fmsadmin restart cwp

                       

                      Most of the time, we get a "stop" behaviour, sometimes an error 10007, but the service never come back up automatically.

                      (fyi the behavior is normal when we stop and start the web publication via the Java Admin Console).

                       

                      Sometimes a :

                      $ fmsadmin start cwp

                      works afterwards, but, sometimes, it gives an error 10006...

                       

                       

                      The weirdest is when we throw a "stop" command, on the main page of the "Admin Console" the "Web publishing engine goes red (as expected) but :

                      - the IWP, XML and XSLT are still reported as ON

                      - the CWP access still works when tested from a remote machine...

                       

                       

                       

                      Best regards.

                      • 8. Re: command line to restart WPE on MacOS X Server
                        KojiTakeuchi

                        Hi BenoitJolly,

                         

                        On which version have you tried?

                        cwp and wpe option work only on FMS 11.

                        • 9. Re: command line to restart WPE on MacOS X Server
                          BenoitJolly

                          We tried on a FMS11 Advanced (updated to the last version) newly installed on a newly installed Mac OS X Server 10.6

                          For you, both

                          $fmsadmin restart cwp

                          and

                          $fmsadmin restart wpe

                           

                          worked correctly on this version ?

                           

                          Best regards.