-
when i run i'll paste my config for the 3 services which are stopped+started instead of restarted: $ cat /etc/finit.d/seatd.conf
service name:seatd [2345] restart:10 <service/syslogd/running> notify:systemd /nix/store/f2m4k2pp7pxv65lrcqbdj1pfm3wmf59x-sdnotify-wrapper-bin/bin/sdnotify-wrapper /nix/store/jrcz9y4i408n4f8s8ki3hr02hjdq3rva-seatd-0.9.1-bin/bin/seatd -n 1 -u root -g seat -l debug -- seat management daemon $ cat /etc/finit.d/sshd.conf
service name:sshd [2345] restart:10 <task/ssh-keygen/success> /nix/store/32s39mc064nvfvmd9daj0s3pqmsfgwj3-openssh-9.9p1/bin/sshd -D -f /etc/ssh/sshd_config -- openssh daemon $ grep tty2 /etc/finit.conf
tty [2345] <service/syslogd/running> /nix/store/vpj6g101ms40k7wd55161xzjjdcm7l91-util-linux-2.39.4-bin/bin/agetty tty2 -nil /nix/store/1giampmnhp5p90z1nj40b3kj10vdpnk1-lemurs-0.3.2/bin/lemurs nowait -- lemurs terminal user interface display/login manager for context - my actual issue is that if i run any and all help is greatly appreciated 🙇♂️ |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
Conditions are tricky. They are tied to the concept of configuration generations in Finit. Synchronizing the start, and stop/restart, of a chain When Finit starts service A it waits for it signal readiness. Traditionally this means waiting for A to create its pid file, somewhere in Finit assumes by default all these services support A while back I wrote this blog post on the topic, it may still be of interest https://troglobit.com/post/2021-05-01-dependency-handling-in-finit/ |
Beta Was this translation helpful? Give feedback.
-
i spent some time thinking about this and realized i am not confident in some assumptions i have made - i will ask here to clarify for services which are have a ... right? |
Beta Was this translation helpful? Give feedback.
-
i had some more interest to think about this recently i started wondering if a service with i am asking because i am finding that most modern login/display managers die on as always, any and all help or guidance is greatly appreciated 🙇♂️ |
Beta Was this translation helpful? Give feedback.
Well, the notify type doesn't control the reload mechanism used for the service. It's more like this (simplified):
Notify is what the service does (or doesn't) to inform Finit that it's again ready for anyone depending on it.
It sounds to me like you want to disable service reload for some type of services? What I don't understand is under what conditions does Finit send SIGHUP to a service if it's not dirty? After initial startup Finit should not bother a service at all as long as the file its
service
stanza is defined in is touched/modified.