Multiple Lasso8Service spawning

classic Classic list List threaded Threaded
41 messages Options
123
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Lasso8Service spawning

French, Shelane
Adding the -9 to the script there worked. So, it kills the zombie process
but then it's necessary to restart Lasso. Can the restart command be added
to the script or does it have to run separately?

On 2/1/18, 12:54 PM, "[hidden email] on behalf of Ke
Carlton" <[hidden email] on behalf of [hidden email]>
wrote:

>Is the process being run by root?
>
>chown root zombiekiller.sh
>chmod *u+s zombiekiller.sh*
>
>*You could try adding -9 to the kill line, something like: *
>
>echo "$pid" | xargs kill -9
>
>
>On Fri, Feb 2, 2018 at 9:47 AM French, Shelane <[hidden email]> wrote:
>
>> Yes, the pid files look good and I removed the slashes.
>>
>> This is the response:
>>
>> Lasso Zombie Child Thread Killer
>> -----------------------------------
>> WARNING: You *must* have installed the LassoServe_pid routine within
>>each
>> LassoSite
>> startup folder: http://tagswap.net/RD_lassoService_pid otherwise this
>> rountine
>> will simply continuous kill the Lasso sites...
>>
>>
>> 3...2...1...!
>> allLassoProcesses: 3074 3099
>> validLassoProcesses: 3099
>> Killing PID 3074
>> Done
>>
>>
>> However, the processes are still running after this.
>>
>>
>>
>> On 2/1/18, 12:01 PM, "[hidden email] on behalf of
>>Wade
>> Maxfield" <[hidden email] on behalf of
>> [hidden email]> wrote:
>>
>> >> On 2/02/2018, at 05:33, French, Shelane <[hidden email]> wrote:
>> >>
>> >> Thanks Wade for the update.
>> >>
>> >> In regards to the shell script, it did not work. After running it,
>>there
>> >> were still 145 processes running. The server admins say that I may
>>need
>> >>a
>> >> kill -9 instead of kill. I'm not good with Linux admin. I don't see
>> >>where
>> >> I would make that change.
>> >
>> >So the pid files are being created correctly on your system?
>> >
>> >As fas as Ke¹s script, the kill command is on line 47.  Also have you
>> >removed the \ on line 39 and 45?
>> >
>> > - Wade
>> >
>> >
>> >
>> >#############################################################
>> >
>> >This message is sent to you because you are subscribed to
>> >  the mailing list Lasso [hidden email]
>> >Official list archives available at http://www.lassotalk.com
>> >To unsubscribe, E-mail to: <[hidden email]>
>> >Send administrative queries to  <[hidden email]>
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>>   the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Lasso8Service spawning

Wade Maxfield
> On 2/02/2018, at 10:25, French, Shelane <[hidden email]> wrote:
>
> Adding the -9 to the script there worked. So, it kills the zombie process
> but then it's necessary to restart Lasso. Can the restart command be added
> to the script or does it have to run separately?

It’s supposed to kill the zombie processes, but leave the correct one running.

From your example earlier:

3...2...1...!
allLassoProcesses: 3074 3099
validLassoProcesses: 3099
Killing PID 3074
Done


So it killed 3074, and 3099 is still running.  There shouldn’t be a need to restart anything.  Why/what are you having to restart?

 - Wade



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Lasso8Service spawning

French, Shelane
Because after running the script I get a 500 error going to any lasso page.

So, when I look at the files generated after restart:

----
$ cat LassoService8_1.pid
26460
$ cat lassosite_8.6_1
cat: lassosite_8.6_1: No such device or address
----


I'm not sure if a pid is supposed to be written into the lassosite_8.6_1
file, but it's saying "No such device or address." I'm not sure, but I was
thinking that there should be two processes running - one for the overall
server and one for each site. In this server's case we only have one site.
But if it's preserving only one and there should be two, then it kills it
enough for me to use the command line restart command. Before, that wasn't
even working.

On 2/1/18, 1:41 PM, "[hidden email] on behalf of Wade
Maxfield" <[hidden email] on behalf of
[hidden email]> wrote:

>> On 2/02/2018, at 10:25, French, Shelane <[hidden email]> wrote:
>>
>> Adding the -9 to the script there worked. So, it kills the zombie
>>process
>> but then it's necessary to restart Lasso. Can the restart command be
>>added
>> to the script or does it have to run separately?
>
>It¹s supposed to kill the zombie processes, but leave the correct one
>running.
>
>From your example earlier:
>
>3...2...1...!
>allLassoProcesses: 3074 3099
>validLassoProcesses: 3099
>Killing PID 3074
>Done
>
>
>So it killed 3074, and 3099 is still running.  There shouldn¹t be a need
>to restart anything.  Why/what are you having to restart?
>
> - Wade
>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Lasso8Service spawning

Wade Maxfield
> On 2/02/2018, at 10:47, French, Shelane <[hidden email]> wrote:
>
> Because after running the script I get a 500 error going to any lasso page.
>
> So, when I look at the files generated after restart:
> ----
> $ cat LassoService8_1.pid
> 26460
> $ cat lassosite_8.6_1
> cat: lassosite_8.6_1: No such device or address
> ----
>
> I'm not sure if a pid is supposed to be written into the lassosite_8.6_1
> file, but it's saying "No such device or address." I'm not sure, but I was
> thinking that there should be two processes running - one for the overall
> server and one for each site.

The files the tag creates are just LassoService8_[x].pid for 8.1, 8.5 or 8.6, so external monitoring scripts don't need to know what version is installed.
The main lasso service that is responsible for spawning the site instances is in LassoService8_0.pid.


> In this server's case we only have one site.
> But if it's preserving only one and there should be two, then it kills it
> enough for me to use the command line restart command. Before, that wasn't
> even working.

I have multiple sites running but I’m only going to show the first 2 in my samples below

Try:

ls -l /tmp/Lasso*

-rw-rw-r--  1 root   wheel  3048584 Feb  2 04:30 /tmp/LassoService8.out
-rw-rw-r--  1 lasso  wheel        5 Jan  5 10:34 /tmp/LassoService8.pid
-rw-rw-r--  1 lasso  wheel        6 Jan  5 10:34 /tmp/LassoService8_0.pid
-rw-rw-r--  1 lasso  wheel        6 Jan  5 10:34 /tmp/LassoService8_1.pid
-rw-rw-r--  1 lasso  wheel        6 Jan  5 10:34 /tmp/LassoService8_2.pid


cat /tmp/LassoService8_*

18142
18530
18994

and also

ps aux | grep lasso

lasso           18142   0.0  0.1   709944  18784   ??  S     5Jan18   1:41.01 ./Lasso8Service
lasso           18530   0.0  0.1  1067832  23288   ??  S     5Jan18  42:51.12 ./Lasso8Service --nolisten --ischild --siteid=1 --sitename=default --pipename=lassosite_1 --workingdir=LassoSites/default-1
lasso           18994   0.0  0.2  1080124  29644   ??  S     5Jan18  35:56.06 ./Lasso8Service --nolisten --ischild --siteid=2 —sitename=Dev_Internal --pipename=lassosite_2 --workingdir=LassoSites/Dev_Internal-2



The pids from the cat command should match the ones you can see in the ps command.

I’d try running the ps command before and after running the zombie killer so you can see which processes it tried killing, and which are still running afterwards.

 - Wade





#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Lasso8Service spawning

stevepiercy
In reply to this post by French, Shelane
What are the lasso files in /tmp?

With a clean restart, I have:

Lasso8Service_0.pid  # Lasso Server pid file
Lasso8Service_1.pid  # Lasso Site 1 pid file
LassoService8.out    # Lasso log file
lassosite_8.6_1      # Socket for uh... stuff, dunno what

There are no zombie children, so my example is not illustrative,
but you may see lots of other Lasso8Service_*.pid files.

Don't kill the pid in Lasso8Service_0.pid, which is the Lasso
Server pid file.  Then Lasso Server should look around for its
children, and discovering that you have slaughtered all of its
children, should spawn another, just like so:
https://www.youtube.com/watch?v=eciDVOAIXHc

--steve



On 2/1/18 at 9:47 PM, [hidden email] (French, Shelane) pronounced:

>Because after running the script I get a 500 error going to any lasso page.
>
>So, when I look at the files generated after restart:
>
>----
>$ cat LassoService8_1.pid
>26460
>$ cat lassosite_8.6_1
>cat: lassosite_8.6_1: No such device or address
>----
>
>
>I'm not sure if a pid is supposed to be written into the lassosite_8.6_1
>file, but it's saying "No such device or address." I'm not sure, but I was
>thinking that there should be two processes running - one for the overall
>server and one for each site. In this server's case we only have one site.
>But if it's preserving only one and there should be two, then it kills it
>enough for me to use the command line restart command. Before, that wasn't
>even working.
>
>On 2/1/18, 1:41 PM, "[hidden email] on behalf of Wade
>Maxfield" <[hidden email] on behalf of
>[hidden email]> wrote:
>
>>> On 2/02/2018, at 10:25, French, Shelane <[hidden email]> wrote:
>>>   Adding the -9 to the script there worked. So, it kills the zombie
>>>process
>>> but then it's necessary to restart Lasso. Can the restart command be
>>>added
>>> to the script or does it have to run separately?
>>
>>It¹s supposed to kill the zombie processes, but leave the correct one
>>running.
>>
>>From your example earlier:
>>
>>3...2...1...!
>>allLassoProcesses: 3074 3099
>>validLassoProcesses: 3099
>>Killing PID 3074
>>Done
>>
>>
>>So it killed 3074, and 3099 is still running.  There shouldn¹t be a need
>>to restart anything.  Why/what are you having to restart?
>>
>>- Wade
>>
>>
>>
>>#############################################################
>>
>>This message is sent to you because you are subscribed to
>>the mailing list Lasso [hidden email]
>>Official list archives available at http://www.lassotalk.com
>>To unsubscribe, E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Eugene, OR
<[hidden email]>               <http://www.stevepiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Lasso8Service spawning

French, Shelane
With a fresh restart, I only have these files:

-rw-rw-r-- 1 lasso lasso     5 Feb  1 14:48 LassoService8_1.pid
-rw-rw-r-- 1 root  root  11416 Feb  1 14:48 LassoService8.out
-rw-rw-r-- 1 lasso lasso     4 Feb  1 14:48 LassoService8.pid
srwxrwxr-x 1 lasso lasso     0 Feb  1 14:47 lassosite_8.6_1


There is no LassoService8_0.pid file generated. I moved the tag to the
server level LassoStartup folder and did a restart with the same result.

On 2/1/18, 2:33 PM, "[hidden email] on behalf of Steve
Piercy - Website Builder" <[hidden email] on behalf of
[hidden email]> wrote:

>What are the lasso files in /tmp?
>
>With a clean restart, I have:
>
>Lasso8Service_0.pid  # Lasso Server pid file
>Lasso8Service_1.pid  # Lasso Site 1 pid file
>LassoService8.out    # Lasso log file
>lassosite_8.6_1      # Socket for uh... stuff, dunno what
>
>There are no zombie children, so my example is not illustrative,
>but you may see lots of other Lasso8Service_*.pid files.
>
>Don't kill the pid in Lasso8Service_0.pid, which is the Lasso
>Server pid file.  Then Lasso Server should look around for its
>children, and discovering that you have slaughtered all of its
>children, should spawn another, just like so:
>https://www.youtube.com/watch?v=eciDVOAIXHc
>
>--steve
>
>
>
>On 2/1/18 at 9:47 PM, [hidden email] (French, Shelane) pronounced:
>
>>Because after running the script I get a 500 error going to any lasso
>>page.
>>
>>So, when I look at the files generated after restart:
>>
>>----
>>$ cat LassoService8_1.pid
>>26460
>>$ cat lassosite_8.6_1
>>cat: lassosite_8.6_1: No such device or address
>>----
>>
>>
>>I'm not sure if a pid is supposed to be written into the lassosite_8.6_1
>>file, but it's saying "No such device or address." I'm not sure, but I
>>was
>>thinking that there should be two processes running - one for the overall
>>server and one for each site. In this server's case we only have one
>>site.
>>But if it's preserving only one and there should be two, then it kills it
>>enough for me to use the command line restart command. Before, that
>>wasn't
>>even working.
>>
>>On 2/1/18, 1:41 PM, "[hidden email] on behalf of Wade
>>Maxfield" <[hidden email] on behalf of
>>[hidden email]> wrote:
>>
>>>> On 2/02/2018, at 10:25, French, Shelane <[hidden email]> wrote:
>>>>   Adding the -9 to the script there worked. So, it kills the zombie
>>>>process
>>>> but then it's necessary to restart Lasso. Can the restart command be
>>>>added
>>>> to the script or does it have to run separately?
>>>
>>>It¹s supposed to kill the zombie processes, but leave the correct one
>>>running.
>>>
>>>From your example earlier:
>>>
>>>3...2...1...!
>>>allLassoProcesses: 3074 3099
>>>validLassoProcesses: 3099
>>>Killing PID 3074
>>>Done
>>>
>>>
>>>So it killed 3074, and 3099 is still running.  There shouldn¹t be a need
>>>to restart anything.  Why/what are you having to restart?
>>>
>>>- Wade
>>>
>>>
>>>
>>>#############################################################
>>>
>>>This message is sent to you because you are subscribed to
>>>the mailing list Lasso [hidden email]
>>>Official list archives available at http://www.lassotalk.com
>>>To unsubscribe, E-mail to: <[hidden email]>
>>>Send administrative queries to  <[hidden email]>
>>
>>
>>#############################################################
>>
>>This message is sent to you because you are subscribed to
>>the mailing list Lasso [hidden email]
>>Official list archives available at http://www.lassotalk.com
>>To unsubscribe, E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>
>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>Steve Piercy              Website Builder              Eugene, OR
><[hidden email]>               <http://www.stevepiercy.com/>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Lasso8Service spawning

stevepiercy
I think I modified my pid writing tag to insert "_0" in
LassoService8.pid.  I can't remember.  It's just a file name anyway.

This command will show you the Lasso Server process (4842), all
the Lasso Site processes (26684), and the command's process
itself (16017):

ps -o pid,command -au lasso

   PID COMMAND
  4842 ./Lasso8Service
16017 ps -o pid,command -au lasso
26684 ./Lasso8Service --nolisten --ischild --siteid=1
--sitename=default --pipename=lassosite_8.6_1 --workingdir=LassoSites/default-1

Compare those pids with the pids in your /tmp/*.pid to identify
which is which.

Then try running the command to kill only children.

Then modify the script to kill only children.

--steve


On 2/1/18 at 10:51 PM, [hidden email] (French, Shelane) pronounced:

>With a fresh restart, I only have these files:
>
>-rw-rw-r-- 1 lasso lasso     5 Feb  1 14:48 LassoService8_1.pid
>-rw-rw-r-- 1 root  root  11416 Feb  1 14:48 LassoService8.out
>-rw-rw-r-- 1 lasso lasso     4 Feb  1 14:48 LassoService8.pid
>srwxrwxr-x 1 lasso lasso     0 Feb  1 14:47 lassosite_8.6_1
>
>
>There is no LassoService8_0.pid file generated. I moved the tag to the
>server level LassoStartup folder and did a restart with the same result.
>
>On 2/1/18, 2:33 PM, "[hidden email] on behalf of Steve
>Piercy - Website Builder" <[hidden email] on behalf of
>[hidden email]> wrote:
>
>>What are the lasso files in /tmp?
>>
>>With a clean restart, I have:
>>
>>Lasso8Service_0.pid  # Lasso Server pid file
>>Lasso8Service_1.pid  # Lasso Site 1 pid file
>>LassoService8.out    # Lasso log file
>>lassosite_8.6_1      # Socket for uh... stuff, dunno what
>>
>>There are no zombie children, so my example is not illustrative,
>>but you may see lots of other Lasso8Service_*.pid files.
>>
>>Don't kill the pid in Lasso8Service_0.pid, which is the Lasso
>>Server pid file.  Then Lasso Server should look around for its
>>children, and discovering that you have slaughtered all of its
>>children, should spawn another, just like so:
>>https://www.youtube.com/watch?v=eciDVOAIXHc
>>
>>--steve
>>
>>
>>
>>On 2/1/18 at 9:47 PM, [hidden email] (French, Shelane) pronounced:
>>
>>>Because after running the script I get a 500 error going to any lasso
>>>page.
>>>
>>>So, when I look at the files generated after restart:
>>>
>>>----
>>>$ cat LassoService8_1.pid
>>>26460
>>>$ cat lassosite_8.6_1
>>>cat: lassosite_8.6_1: No such device or address
>>>----
>>>
>>>
>>>I'm not sure if a pid is supposed to be written into the lassosite_8.6_1
>>>file, but it's saying "No such device or address." I'm not sure, but I
>>>was
>>>thinking that there should be two processes running - one for the overall
>>>server and one for each site. In this server's case we only have one
>>>site.
>>>But if it's preserving only one and there should be two, then it kills it
>>>enough for me to use the command line restart command. Before, that
>>>wasn't
>>>even working.
>>>
>>>On 2/1/18, 1:41 PM, "[hidden email] on behalf of Wade
>>>Maxfield" <[hidden email] on behalf of
>>>[hidden email]> wrote:
>>>
>>>>> On 2/02/2018, at 10:25, French, Shelane <[hidden email]> wrote:
>>>>>   Adding the -9 to the script there worked. So, it kills the zombie
>>>>>process
>>>>> but then it's necessary to restart Lasso. Can the restart command be
>>>>>added
>>>>> to the script or does it have to run separately?
>>>>
>>>>It¹s supposed to kill the zombie processes, but leave the correct one
>>>>running.
>>>>
>>>>From your example earlier:
>>>>
>>>>3...2...1...!
>>>>allLassoProcesses: 3074 3099
>>>>validLassoProcesses: 3099
>>>>Killing PID 3074
>>>>Done
>>>>
>>>>
>>>>So it killed 3074, and 3099 is still running.  There shouldn¹t be a need
>>>>to restart anything.  Why/what are you having to restart?
>>>>
>>>>- Wade
>>>>
>>>>
>>>>
>>>>#############################################################
>>>>
>>>>This message is sent to you because you are subscribed to
>>>>the mailing list Lasso [hidden email]
>>>>Official list archives available at http://www.lassotalk.com
>>>>To unsubscribe, E-mail to: <[hidden email]>
>>>>Send administrative queries to  <[hidden email]>
>>>
>>>
>>>#############################################################
>>>
>>>This message is sent to you because you are subscribed to
>>>the mailing list Lasso [hidden email]
>>>Official list archives available at http://www.lassotalk.com
>>>To unsubscribe, E-mail to: <[hidden email]>
>>>Send administrative queries to  <[hidden email]>
>>
>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>Steve Piercy              Website Builder              Eugene, OR
>><[hidden email]>               <http://www.stevepiercy.com/>
>>
>>
>>#############################################################
>>
>>This message is sent to you because you are subscribed to
>>the mailing list Lasso [hidden email]
>>Official list archives available at http://www.lassotalk.com
>>To unsubscribe, E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Eugene, OR
<[hidden email]>               <http://www.stevepiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Lasso8Service spawning

French, Shelane
Both the LassoService8_1.pid file and the LassoService8.pid file have the
value of 7320.

However, the two services from your commands show this:
7295 ./Lasso8Service
 7320 ./Lasso8Service --nolisten --ischild --siteid=1 --sitename=default
--pipename=lassosite_8.6_1 --workingdir=LassoSites/default-1


So there is nothing writing "7295".



On 2/1/18, 3:20 PM, "[hidden email] on behalf of Steve
Piercy - Website Builder" <[hidden email] on behalf of
[hidden email]> wrote:

>I think I modified my pid writing tag to insert "_0" in
>LassoService8.pid.  I can't remember.  It's just a file name anyway.
>
>This command will show you the Lasso Server process (4842), all
>the Lasso Site processes (26684), and the command's process
>itself (16017):
>
>ps -o pid,command -au lasso
>
>   PID COMMAND
>  4842 ./Lasso8Service
>16017 ps -o pid,command -au lasso
>26684 ./Lasso8Service --nolisten --ischild --siteid=1
>--sitename=default --pipename=lassosite_8.6_1
>--workingdir=LassoSites/default-1
>
>Compare those pids with the pids in your /tmp/*.pid to identify
>which is which.
>
>Then try running the command to kill only children.
>
>Then modify the script to kill only children.
>
>--steve
>
>
>On 2/1/18 at 10:51 PM, [hidden email] (French, Shelane) pronounced:
>
>>With a fresh restart, I only have these files:
>>
>>-rw-rw-r-- 1 lasso lasso     5 Feb  1 14:48 LassoService8_1.pid
>>-rw-rw-r-- 1 root  root  11416 Feb  1 14:48 LassoService8.out
>>-rw-rw-r-- 1 lasso lasso     4 Feb  1 14:48 LassoService8.pid
>>srwxrwxr-x 1 lasso lasso     0 Feb  1 14:47 lassosite_8.6_1
>>
>>
>>There is no LassoService8_0.pid file generated. I moved the tag to the
>>server level LassoStartup folder and did a restart with the same result.
>>
>>On 2/1/18, 2:33 PM, "[hidden email] on behalf of Steve
>>Piercy - Website Builder" <[hidden email] on behalf of
>>[hidden email]> wrote:
>>
>>>What are the lasso files in /tmp?
>>>
>>>With a clean restart, I have:
>>>
>>>Lasso8Service_0.pid  # Lasso Server pid file
>>>Lasso8Service_1.pid  # Lasso Site 1 pid file
>>>LassoService8.out    # Lasso log file
>>>lassosite_8.6_1      # Socket for uh... stuff, dunno what
>>>
>>>There are no zombie children, so my example is not illustrative,
>>>but you may see lots of other Lasso8Service_*.pid files.
>>>
>>>Don't kill the pid in Lasso8Service_0.pid, which is the Lasso
>>>Server pid file.  Then Lasso Server should look around for its
>>>children, and discovering that you have slaughtered all of its
>>>children, should spawn another, just like so:
>>>https://www.youtube.com/watch?v=eciDVOAIXHc
>>>
>>>--steve
>>>
>>>
>>>
>>>On 2/1/18 at 9:47 PM, [hidden email] (French, Shelane) pronounced:
>>>
>>>>Because after running the script I get a 500 error going to any lasso
>>>>page.
>>>>
>>>>So, when I look at the files generated after restart:
>>>>
>>>>----
>>>>$ cat LassoService8_1.pid
>>>>26460
>>>>$ cat lassosite_8.6_1
>>>>cat: lassosite_8.6_1: No such device or address
>>>>----
>>>>
>>>>
>>>>I'm not sure if a pid is supposed to be written into the
>>>>lassosite_8.6_1
>>>>file, but it's saying "No such device or address." I'm not sure, but I
>>>>was
>>>>thinking that there should be two processes running - one for the
>>>>overall
>>>>server and one for each site. In this server's case we only have one
>>>>site.
>>>>But if it's preserving only one and there should be two, then it kills
>>>>it
>>>>enough for me to use the command line restart command. Before, that
>>>>wasn't
>>>>even working.
>>>>
>>>>On 2/1/18, 1:41 PM, "[hidden email] on behalf of
>>>>Wade
>>>>Maxfield" <[hidden email] on behalf of
>>>>[hidden email]> wrote:
>>>>
>>>>>> On 2/02/2018, at 10:25, French, Shelane <[hidden email]> wrote:
>>>>>>   Adding the -9 to the script there worked. So, it kills the zombie
>>>>>>process
>>>>>> but then it's necessary to restart Lasso. Can the restart command be
>>>>>>added
>>>>>> to the script or does it have to run separately?
>>>>>
>>>>>It¹s supposed to kill the zombie processes, but leave the correct one
>>>>>running.
>>>>>
>>>>>From your example earlier:
>>>>>
>>>>>3...2...1...!
>>>>>allLassoProcesses: 3074 3099
>>>>>validLassoProcesses: 3099
>>>>>Killing PID 3074
>>>>>Done
>>>>>
>>>>>
>>>>>So it killed 3074, and 3099 is still running.  There shouldn¹t be a
>>>>>need
>>>>>to restart anything.  Why/what are you having to restart?
>>>>>
>>>>>- Wade
>>>>>
>>>>>
>>>>>
>>>>>#############################################################
>>>>>
>>>>>This message is sent to you because you are subscribed to
>>>>>the mailing list Lasso [hidden email]
>>>>>Official list archives available at http://www.lassotalk.com
>>>>>To unsubscribe, E-mail to: <[hidden email]>
>>>>>Send administrative queries to  <[hidden email]>
>>>>
>>>>
>>>>#############################################################
>>>>
>>>>This message is sent to you because you are subscribed to
>>>>the mailing list Lasso [hidden email]
>>>>Official list archives available at http://www.lassotalk.com
>>>>To unsubscribe, E-mail to: <[hidden email]>
>>>>Send administrative queries to  <[hidden email]>
>>>
>>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>Steve Piercy              Website Builder              Eugene, OR
>>><[hidden email]>               <http://www.stevepiercy.com/>
>>>
>>>
>>>#############################################################
>>>
>>>This message is sent to you because you are subscribed to
>>>the mailing list Lasso [hidden email]
>>>Official list archives available at http://www.lassotalk.com
>>>To unsubscribe, E-mail to: <[hidden email]>
>>>Send administrative queries to  <[hidden email]>
>>
>>
>>#############################################################
>>
>>This message is sent to you because you are subscribed to
>>the mailing list Lasso [hidden email]
>>Official list archives available at http://www.lassotalk.com
>>To unsubscribe, E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>
>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>Steve Piercy              Website Builder              Eugene, OR
><[hidden email]>               <http://www.stevepiercy.com/>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Lasso8Service spawning

Wade Maxfield
> On 2/02/2018, at 12:25, French, Shelane <[hidden email]> wrote:
>
> Both the LassoService8_1.pid file and the LassoService8.pid file have the
> value of 7320.
>
> However, the two services from your commands show this:
> 7295 ./Lasso8Service
> 7320 ./Lasso8Service --nolisten --ischild --siteid=1 --sitename=default
> --pipename=lassosite_8.6_1 --workingdir=LassoSites/default-1
>
>
> So there is nothing writing "7295".
>

The _0 version should be written out by the ctag.  It’s called in the last line as:
RD_lassoService_pid(-cmd='write', -siteid=0);



What do you get if you run:

ps -o pid,command -au lasso | grep [L]asso8Service$

and then

ps -o pid,command -au lasso | grep [L]asso8Service$ | grep -v sudo | awk '{print $1}'


 - Wade



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Lasso8Service spawning

stevepiercy
In reply to this post by French, Shelane
I have a modified version of Wade's rd_thingie.  Most of the
changes are documentation and coding style, but some changes are
of substance.

Ultimately you must understand everything that your tag in
LassoStartup does.  Mine satisfies my needs, but may not work
for yours.  I use monit with mine to get notifications of pid
file changes.
http://www.lassosoft.com/Monitoring-Lasso-with-Monit

--steve

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

# cat /usr/local/Lasso\ Professional\ 8/LassoStartup/lasso8service_pid.lasso
[
/* ==========================================

---------------
Description
---------------
lasso8service_pid reports the Lasso8Service PID. It optionally
reads or
writes to a pidfile at /tmp/Lasso8Service_{siteid}.pid. All
commands are
executed through [os_process].

---------------
Usage
---------------
Place this method in the LassoStartup directory at the Lasso
Server scope.
This will load the method when Lasso Server starts, and will be
available to
all its Lasso Sites.

---------------
Requirements
---------------
OS_Process and Linux

========================================== */

if(lasso_tagexists('os_process'));
     define_tag(
         'lasso8service_pid',
         -optional='cmd',
         -type='string',
         -optional='siteID',
         -type='integer',
         -privileged,
         -priority='replace',
         -description='Reports the Lasso8Service PID for a given
site. It optionally reads or writes to a pidfile at
/tmp/Lasso8Service_{siteid}.pid. All commands are executed
through [os_process].'
     );

         !local_defined('cmd') ? local('cmd') = '';
         !local_defined('siteid') ? local('siteid') = site_id;
         local('os') = lasso_version(-lassoplatform);
         local('out') = string;

         if(#os >> 'Win');
             local('out') = -1;
         else;
             select(#cmd);
                 case('write_sh');
                     // Write the PID of the LassoAdmin/Lasso8Service.sh
                     // startup script to /tmp/Lasso8Service.sh.pid
                     // and return the written value.
                     local('shell') = os_process(
                         '/bin/bash',
                         (: '-c', 'ps -o pid,command -u root |
grep -i /bin.*Lasso8Service.sh$ | awk \'{print $1}\' >
/tmp/Lasso8Service.sh.pid; cat /tmp/Lasso8Service.sh.pid;')
                     );
                     local('out') += #shell->read;
                     !#out->size ? #out = #shell->readerror;
                     #shell->close;

                 case('write');
                     // Write the PID to a pidfile, and return
the written value.
                     local('oldpid') =
lasso8service_pid(-cmd='read', -siteid=#siteid);
                     local('pid') = lasso8service_pid(-siteid=#siteid);

                     // Only update pidfile if PID has changed.
                     if(integer(#pid) != integer(#oldpid));
                         local('shell') = os_process(
                             '/bin/bash',
                             (: '-c', 'echo ' + Integer(#pid) +
' > /tmp/Lasso8Service_' + #siteID + '.pid; cat
/tmp/Lasso8Service_' + #siteID + '.pid')
                         );
                         local('out') += #shell->read;
                         !#out->size ? #out = #shell->readerror;
                         #shell->close;
                     else;
                         #out = #pid;
                     /if;

                 case('read');
                     // Read the PID from the pidfile.
                     local('shell') = os_process(
                         '/bin/bash',
                         (: '-c', 'cat /tmp/Lasso8Service_' +
#siteid + '.pid')
                     );
                     local('out') += #shell->read;
                     !#out->size ? #out = #shell->readerror;
                     #shell->close;

                 case('');
                     // Get the current PID from the process
snapshot list.
                     if(#siteid == 0);
                         local('shell') = os_process(
                             '/bin/bash',
                             (: '-c', 'ps -o pid,command -u
lasso | grep -i Lasso8Service$ | awk \'{print $1}\'')
                         );
                     else;
                         local('shell') = os_process(
                             '/bin/bash',
                             (: '-c', 'ps -o pid,command -u
lasso | grep -i lassosite_8.6_' + #siteid + ' | awk \'{print $1}\'')
                         );
                     /if;
                     local('out') += #shell->read;
                     !#out->size ? #out = #shell->readerror;
                     #shell->close;
             /select;
         /if;
         return(#out);
     /define_tag;
/if;

// write the pid file on Lasso site startup
if(site_id > 0);
     lasso8service_pid(-cmd='write');
/if;
]


On 2/1/18 at 11:25 PM, [hidden email] (French, Shelane) pronounced:

>Both the LassoService8_1.pid file and the LassoService8.pid file have the
>value of 7320.
>
>However, the two services from your commands show this:
>7295 ./Lasso8Service
>7320 ./Lasso8Service --nolisten --ischild --siteid=1 --sitename=default
>--pipename=lassosite_8.6_1 --workingdir=LassoSites/default-1
>
>
>So there is nothing writing "7295".
>
>
>
>On 2/1/18, 3:20 PM, "[hidden email] on behalf of Steve
>Piercy - Website Builder" <[hidden email] on behalf of
>[hidden email]> wrote:
>
>>I think I modified my pid writing tag to insert "_0" in
>>LassoService8.pid.  I can't remember.  It's just a file name anyway.
>>
>>This command will show you the Lasso Server process (4842), all
>>the Lasso Site processes (26684), and the command's process
>>itself (16017):
>>
>>ps -o pid,command -au lasso
>>
>>PID COMMAND
>>4842 ./Lasso8Service
>>16017 ps -o pid,command -au lasso
>>26684 ./Lasso8Service --nolisten --ischild --siteid=1
>>--sitename=default --pipename=lassosite_8.6_1
>>--workingdir=LassoSites/default-1
>>
>>Compare those pids with the pids in your /tmp/*.pid to identify
>>which is which.
>>
>>Then try running the command to kill only children.
>>
>>Then modify the script to kill only children.
>>
>>--steve
>>
>>
>>On 2/1/18 at 10:51 PM, [hidden email] (French, Shelane) pronounced:
>>
>>>With a fresh restart, I only have these files:
>>>
>>>-rw-rw-r-- 1 lasso lasso     5 Feb  1 14:48 LassoService8_1.pid
>>>-rw-rw-r-- 1 root  root  11416 Feb  1 14:48 LassoService8.out
>>>-rw-rw-r-- 1 lasso lasso     4 Feb  1 14:48 LassoService8.pid
>>>srwxrwxr-x 1 lasso lasso     0 Feb  1 14:47 lassosite_8.6_1
>>>
>>>
>>>There is no LassoService8_0.pid file generated. I moved the tag to the
>>>server level LassoStartup folder and did a restart with the same result.
>>>
>>>On 2/1/18, 2:33 PM, "[hidden email] on behalf of Steve
>>>Piercy - Website Builder" <[hidden email] on behalf of
>>>[hidden email]> wrote:
>>>
>>>>What are the lasso files in /tmp?
>>>>
>>>>With a clean restart, I have:
>>>>
>>>>Lasso8Service_0.pid  # Lasso Server pid file
>>>>Lasso8Service_1.pid  # Lasso Site 1 pid file
>>>>LassoService8.out    # Lasso log file
>>>>lassosite_8.6_1      # Socket for uh... stuff, dunno what
>>>>
>>>>There are no zombie children, so my example is not illustrative,
>>>>but you may see lots of other Lasso8Service_*.pid files.
>>>>
>>>>Don't kill the pid in Lasso8Service_0.pid, which is the Lasso
>>>>Server pid file.  Then Lasso Server should look around for its
>>>>children, and discovering that you have slaughtered all of its
>>>>children, should spawn another, just like so:
>>>>https://www.youtube.com/watch?v=eciDVOAIXHc
>>>>
>>>>--steve
>>>>
>>>>
>>>>
>>>>On 2/1/18 at 9:47 PM, [hidden email] (French, Shelane) pronounced:
>>>>
>>>>>Because after running the script I get a 500 error going to any lasso
>>>>>page.
>>>>>
>>>>>So, when I look at the files generated after restart:
>>>>>
>>>>>----
>>>>>$ cat LassoService8_1.pid
>>>>>26460
>>>>>$ cat lassosite_8.6_1
>>>>>cat: lassosite_8.6_1: No such device or address
>>>>>----
>>>>>
>>>>>
>>>>>I'm not sure if a pid is supposed to be written into the
>>>>>lassosite_8.6_1
>>>>>file, but it's saying "No such device or address." I'm not sure, but I
>>>>>was
>>>>>thinking that there should be two processes running - one for the
>>>>>overall
>>>>>server and one for each site. In this server's case we only have one
>>>>>site.
>>>>>But if it's preserving only one and there should be two, then it kills
>>>>>it
>>>>>enough for me to use the command line restart command. Before, that
>>>>>wasn't
>>>>>even working.
>>>>>
>>>>>On 2/1/18, 1:41 PM, "[hidden email] on behalf of
>>>>>Wade
>>>>>Maxfield" <[hidden email] on behalf of
>>>>>[hidden email]> wrote:
>>>>>
>>>>>>> On 2/02/2018, at 10:25, French, Shelane <[hidden email]> wrote:
>>>>>>>   Adding the -9 to the script there worked. So, it kills the zombie
>>>>>>>process
>>>>>>> but then it's necessary to restart Lasso. Can the restart command be
>>>>>>>added
>>>>>>> to the script or does it have to run separately?
>>>>>>
>>>>>>It¹s supposed to kill the zombie processes, but leave the correct one
>>>>>>running.
>>>>>>
>>>>>>From your example earlier:
>>>>>>
>>>>>>3...2...1...!
>>>>>>allLassoProcesses: 3074 3099
>>>>>>validLassoProcesses: 3099
>>>>>>Killing PID 3074
>>>>>>Done
>>>>>>
>>>>>>
>>>>>>So it killed 3074, and 3099 is still running.  There shouldn¹t be a
>>>>>>need
>>>>>>to restart anything.  Why/what are you having to restart?
>>>>>>
>>>>>>- Wade
>>>>>>
>>>>>>
>>>>>>
>>>>>>#############################################################
>>>>>>
>>>>>>This message is sent to you because you are subscribed to
>>>>>>the mailing list Lasso [hidden email]
>>>>>>Official list archives available at http://www.lassotalk.com
>>>>>>To unsubscribe, E-mail to: <[hidden email]>
>>>>>>Send administrative queries to  <[hidden email]>
>>>>>
>>>>>
>>>>>#############################################################
>>>>>
>>>>>This message is sent to you because you are subscribed to
>>>>>the mailing list Lasso [hidden email]
>>>>>Official list archives available at http://www.lassotalk.com
>>>>>To unsubscribe, E-mail to: <[hidden email]>
>>>>>Send administrative queries to  <[hidden email]>
>>>>
>>>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>Steve Piercy              Website Builder              Eugene, OR
>>>><[hidden email]>               <http://www.stevepiercy.com/>
>>>>
>>>>
>>>>#############################################################
>>>>
>>>>This message is sent to you because you are subscribed to
>>>>the mailing list Lasso [hidden email]
>>>>Official list archives available at http://www.lassotalk.com
>>>>To unsubscribe, E-mail to: <[hidden email]>
>>>>Send administrative queries to  <[hidden email]>
>>>
>>>
>>>#############################################################
>>>
>>>This message is sent to you because you are subscribed to
>>>the mailing list Lasso [hidden email]
>>>Official list archives available at http://www.lassotalk.com
>>>To unsubscribe, E-mail to: <[hidden email]>
>>>Send administrative queries to  <[hidden email]>
>>
>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>Steve Piercy              Website Builder              Eugene, OR
>><[hidden email]>               <http://www.stevepiercy.com/>
>>
>>
>>#############################################################
>>
>>This message is sent to you because you are subscribed to
>>the mailing list Lasso [hidden email]
>>Official list archives available at http://www.lassotalk.com
>>To unsubscribe, E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Eugene, OR
<[hidden email]>               <http://www.stevepiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Lasso8Service spawning

French, Shelane
In reply to this post by Wade Maxfield
ps -o pid,command -au lasso | grep [L]asso8Service$

13786 ./Lasso8Service



ps -o pid,command -au lasso | grep [L]asso8Service$ | grep -v sudo | awk
'{print $1}'

13786



I see that last line with siteid=0 is in my startup file.

On 2/1/18, 4:01 PM, "[hidden email] on behalf of Wade
Maxfield" <[hidden email] on behalf of
[hidden email]> wrote:

>> On 2/02/2018, at 12:25, French, Shelane <[hidden email]> wrote:
>>
>> Both the LassoService8_1.pid file and the LassoService8.pid file have
>>the
>> value of 7320.
>>
>> However, the two services from your commands show this:
>> 7295 ./Lasso8Service
>> 7320 ./Lasso8Service --nolisten --ischild --siteid=1 --sitename=default
>> --pipename=lassosite_8.6_1 --workingdir=LassoSites/default-1
>>
>>
>> So there is nothing writing "7295".
>>
>
>The _0 version should be written out by the ctag.  It¹s called in the
>last line as:
>RD_lassoService_pid(-cmd='write', -siteid=0);
>
>
>
>What do you get if you run:
>
>ps -o pid,command -au lasso | grep [L]asso8Service$
>
>and then
>
>ps -o pid,command -au lasso | grep [L]asso8Service$ | grep -v sudo | awk
>'{print $1}'
>
>
> - Wade
>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Lasso8Service spawning

Wade Maxfield
> On 2/02/2018, at 13:44, French, Shelane <[hidden email]> wrote:
>
> ps -o pid,command -au lasso | grep [L]asso8Service$
>
> 13786 ./Lasso8Service
>
>
>
> ps -o pid,command -au lasso | grep [L]asso8Service$ | grep -v sudo | awk
> '{print $1}'
>
> 13786
>
>
>
> I see that last line with siteid=0 is in my startup file.

OK, so the raw command the tag uses to determine the pid for the main process does work on your machine. But I’m puzzled as to why you are not getting a LassoService8_0.pid file written when you start Lasso.  Can you try calling RD_lassoService_pid(-cmd='write', -siteid=0) from a normal page and see if it writes the file?

And maybe try Steve’s version, but you will need to add a call to write out siteID 0.

 - Wade


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Lasso8Service spawning

French, Shelane
I haven't tried Steve's version yet. I did call the tag from a file with
site 0 and it created the correct file with the correct value. I'm not
sure why the one from my independent lasso file worked and the one in the
start up did not. The start up one is working for the actual site, just
not site 0.

On 2/1/18, 5:31 PM, "[hidden email] on behalf of Wade
Maxfield" <[hidden email] on behalf of
[hidden email]> wrote:

>> On 2/02/2018, at 13:44, French, Shelane <[hidden email]> wrote:
>>
>> ps -o pid,command -au lasso | grep [L]asso8Service$
>>
>> 13786 ./Lasso8Service
>>
>>
>>
>> ps -o pid,command -au lasso | grep [L]asso8Service$ | grep -v sudo | awk
>> '{print $1}'
>>
>> 13786
>>
>>
>>
>> I see that last line with siteid=0 is in my startup file.
>
>OK, so the raw command the tag uses to determine the pid for the main
>process does work on your machine. But I¹m puzzled as to why you are not
>getting a LassoService8_0.pid file written when you start Lasso.  Can you
>try calling RD_lassoService_pid(-cmd='write', -siteid=0) from a normal
>page and see if it writes the file?
>
>And maybe try Steve¹s version, but you will need to add a call to write
>out siteID 0.
>
> - Wade
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Lasso8Service spawning

Wade Maxfield
> On 2/02/2018, at 17:35, French, Shelane <[hidden email]> wrote:
>
> I haven't tried Steve's version yet. I did call the tag from a file with
> site 0 and it created the correct file with the correct value. I'm not
> sure why the one from my independent lasso file worked and the one in the
> start up did not. The start up one is working for the actual site, just
> not site 0.

Where have you installed it?  In the main LassoStartup or LassoSites/sitename-1/LassoStartup?

I’ve always installed it in the main LassoStartup.

 - Wade



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Lasso8Service spawning

French, Shelane
I originally installed it the /LassoSites/default-1/LassoStartup but then
I moved it instead to the root LassoStartup folder. Lasso service has been
restarted since this move.


On 2/1/18, 8:50 PM, "[hidden email] on behalf of Wade
Maxfield" <[hidden email] on behalf of
[hidden email]> wrote:

>> On 2/02/2018, at 17:35, French, Shelane <[hidden email]> wrote:
>>
>> I haven't tried Steve's version yet. I did call the tag from a file with
>> site 0 and it created the correct file with the correct value. I'm not
>> sure why the one from my independent lasso file worked and the one in
>>the
>> start up did not. The start up one is working for the actual site, just
>> not site 0.
>
>Where have you installed it?  In the main LassoStartup or
>LassoSites/sitename-1/LassoStartup?
>
>I¹ve always installed it in the main LassoStartup.
>
> - Wade
>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Lasso8Service spawning

Wade Maxfield
> On 2/02/2018, at 17:54, French, Shelane <[hidden email]> wrote:
>
> I originally installed it the /LassoSites/default-1/LassoStartup but then
> I moved it instead to the root LassoStartup folder. Lasso service has been
> restarted since this move.

I’m stumped then as to why it’s not writing the _0 pid file.

Maybe you could add a line to the beginning of the zombie kill script to call a simple page that does the site 0 call.  That way the pid file will have the correct ownership and a valid value before the script starts filtering and killing the errant processes.  It should then leave the main process running and remove the need to restart the lasso service.

 - Wade



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Lasso8Service spawning

Jolle Carlestam-2
2 feb. 2018 kl. 06:01 skrev Wade Maxfield <[hidden email]>:
>
> I’m stumped then as to why it’s not writing the _0 pid file.

The following tip could be already answered, I have not followed this thread carefully since I’m not a lasso 8 guy. But have you double checked the permissions for the directory the _0 pid file should be written to? Do the user that runs the script have write permissions to it?

HDB
Jolle

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Lasso8Service spawning

French, Shelane
Jolle,

It runs in the startup directory after the tag is defined. It's written to
the same directory that the _1 file is being written to which is /tmp.

On 2/1/18, 9:07 PM, "[hidden email] on behalf of Jolle
Carlestam" <[hidden email] on behalf of
[hidden email]> wrote:

>2 feb. 2018 kl. 06:01 skrev Wade Maxfield <[hidden email]>:
>>
>> I¹m stumped then as to why it¹s not writing the _0 pid file.
>
>The following tip could be already answered, I have not followed this
>thread carefully since I¹m not a lasso 8 guy. But have you double checked
>the permissions for the directory the _0 pid file should be written to?
>Do the user that runs the script have write permissions to it?
>
>HDB
>Jolle
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Lasso8Service spawning

French, Shelane
In reply to this post by Wade Maxfield
So... I'm going to try this:

In a startup file of the default_1 site I've added this line:

lasso_tagexists('RD_lassoService_pid') ? RD_lassoService_pid(-cmd='write',
-siteid=0) | log_critical('RD_lassoService_pid not loaded');

I'll let you know how it goes in the morning.

On 2/1/18, 9:01 PM, "[hidden email] on behalf of Wade
Maxfield" <[hidden email] on behalf of
[hidden email]> wrote:

>> On 2/02/2018, at 17:54, French, Shelane <[hidden email]> wrote:
>>
>> I originally installed it the /LassoSites/default-1/LassoStartup but
>>then
>> I moved it instead to the root LassoStartup folder. Lasso service has
>>been
>> restarted since this move.
>
>I¹m stumped then as to why it¹s not writing the _0 pid file.
>
>Maybe you could add a line to the beginning of the zombie kill script to
>call a simple page that does the site 0 call.  That way the pid file will
>have the correct ownership and a valid value before the script starts
>filtering and killing the errant processes.  It should then leave the
>main process running and remove the need to restart the lasso service.
>
> - Wade
>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Lasso8Service spawning

French, Shelane
Things are working!

Thanks everyone: Ke, Wade, & Steve!




Shelane French
Workforce Enablement
Livermore Information Technology
On 2/1/18, 9:14 PM, "[hidden email] on behalf of French, Shelane" <[hidden email] on behalf of [hidden email]> wrote:

    So... I'm going to try this:
   
    In a startup file of the default_1 site I've added this line:
   
    lasso_tagexists('RD_lassoService_pid') ? RD_lassoService_pid(-cmd='write',
    -siteid=0) | log_critical('RD_lassoService_pid not loaded');
   
    I'll let you know how it goes in the morning.
   
    On 2/1/18, 9:01 PM, "[hidden email] on behalf of Wade
    Maxfield" <[hidden email] on behalf of
    [hidden email]> wrote:
   
    >> On 2/02/2018, at 17:54, French, Shelane <[hidden email]> wrote:
    >>
    >> I originally installed it the /LassoSites/default-1/LassoStartup but
    >>then
    >> I moved it instead to the root LassoStartup folder. Lasso service has
    >>been
    >> restarted since this move.
    >
    >I¹m stumped then as to why it¹s not writing the _0 pid file.
    >
    >Maybe you could add a line to the beginning of the zombie kill script to
    >call a simple page that does the site 0 call.  That way the pid file will
    >have the correct ownership and a valid value before the script starts
    >filtering and killing the errant processes.  It should then leave the
    >main process running and remove the need to restart the lasso service.
    >
    > - Wade
    >
    >
    >
    >#############################################################
    >
    >This message is sent to you because you are subscribed to
    >  the mailing list Lasso [hidden email]
    >Official list archives available at http://www.lassotalk.com
    >To unsubscribe, E-mail to: <[hidden email]>
    >Send administrative queries to  <[hidden email]>
   
   
    #############################################################
   
    This message is sent to you because you are subscribed to
      the mailing list Lasso [hidden email]
    Official list archives available at http://www.lassotalk.com
    To unsubscribe, E-mail to: <[hidden email]>
    Send administrative queries to  <[hidden email]>
   


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
123