Re: runit patches to fix compiler warnings on RHEL 7
Am 27.11.19 um 21:33 schrieb J. Lewis Muir: > On 11/25, J. Lewis Muir wrote: >> Is runit hosted in a public source code repo? If so, where? >> >> Are patches to fix runit compiler warnings on RHEL 7 welcome? > > I have patches now. Is there a public source code repo I can contribute > against? Or would it be helpful to just send the patches to the list? Hi Lewis it's cool to see you are interested in runit. May I ask whether you are using it for controls / EPICS? AFAIK there is no public repository for runit. You may want to ping Gerrit Pape personally to get his attention. His last message to the list is from march this year where he said he was "looking forward to do a maintenance release of runit eventually and [...] collecting patches". Cheers Ben pEpkey.asc Description: application/pgp-keys
Re: Path monitoring support in s6-services
Am 17.02.21 um 10:26 schrieb Casper Ti. Vector: > On Wed, Feb 17, 2021 at 01:08:44PM +0530, billa chaitanya wrote: >> I am trying to start a service when a file/path is >> modified/touched/created.Do we have any mechanism in s6 that supports >> enabling a service up on monitoring a path? > > inotifyd (or something similar) + s6-svc (or s6-rc)? You can also write your own specialised daemon with a simple shell script a la inotifywait -q -m ... | while true; do # get the next event: event=$(head -1) ... done I am using this method in a production system. Cheers Ben
Re: runit patches to fix compiler warnings on RHEL 7
Am 02.12.19 um 22:58 schrieb Laurent Bercot: >> I see something called sdnotify-wrapper, so maybe I should have a look >> at that? (It was mentioned to me off-list.) > > sdnotify-wrapper will only be useful if your daemon is using the > NOTIFY_SOCKET mechanism (aka sd_notify()) to tell systemd when it is > ready. If it's the case, then yes, you can use sdnotify-wrapper in your > s6 run script and it should automatically do the right thing. Hi, I was the one who told Lewis about sdnotify-wrapper and it seems I got it completely wrong: I had thought it was a wrapper for daemons that use the s6 notification mechanism to make them compatible with the systemd convention. Your description above suggests it does the exact opposite. Cheers Ben
Re: Path monitoring support in s6-services
Since it requires individual instances of inotifyd for each service(s) [which depends on multiple files/paths modifications) to get started] Have you tried it and noticed an impact on your boot times? (AKA: "Profile, don't speculate.") -- Laurent
Re: Path monitoring support in s6-services
> > > What makes you think this would have a noticeable impact on your CPU > load? > Since it requires individual instances of inotifyd for each service(s) [which depends on multiple files/paths modifications) to get started] On Wed, Feb 17, 2021 at 5:36 PM Laurent Bercot wrote: > >> inotifyd (or something similar) + s6-svc (or s6-rc)? > >Thought of the same but I have many such services;Just thinking of cpu > >overhead during the initial boot up. > > What makes you think this would have a noticeable impact on your CPU > load? > > -- > Laurent > >
Re: Path monitoring support in s6-services
inotifyd (or something similar) + s6-svc (or s6-rc)? Thought of the same but I have many such services;Just thinking of cpu overhead during the initial boot up. What makes you think this would have a noticeable impact on your CPU load? -- Laurent
Re: Path monitoring support in s6-services
> > inotifyd (or something similar) + s6-svc (or s6-rc)? > Thought of the same but I have many such services;Just thinking of cpu overhead during the initial boot up. Thanks, Chaitnaya On Wed, Feb 17, 2021 at 2:57 PM Casper Ti. Vector wrote: > On Wed, Feb 17, 2021 at 01:08:44PM +0530, billa chaitanya wrote: > > I am trying to start a service when a file/path is > > modified/touched/created.Do we have any mechanism in s6 that supports > > enabling a service up on monitoring a path? > > inotifyd (or something similar) + s6-svc (or s6-rc)? > > -- > My current OpenPGP key: > RSA4096/0x227E8CAAB7AA186C (expires: 2022.09.20) > 7077 7781 B859 5166 AE07 0286 227E 8CAA B7AA 186C > >
Re: Path monitoring support in s6-services
On Wed, Feb 17, 2021 at 01:08:44PM +0530, billa chaitanya wrote: > I am trying to start a service when a file/path is > modified/touched/created.Do we have any mechanism in s6 that supports > enabling a service up on monitoring a path? inotifyd (or something similar) + s6-svc (or s6-rc)? -- My current OpenPGP key: RSA4096/0x227E8CAAB7AA186C (expires: 2022.09.20) 7077 7781 B859 5166 AE07 0286 227E 8CAA B7AA 186C