search for: sd_notify

Displaying 20 results from an estimated 20 matches for "sd_notify".

2018 Aug 22
2
openssh 7.6 and 7.7 on Oracle Linux 7 (compiled from source) doesn't start correctly with systemd
...evin martin wrote: > Simple seems to have fixed it. I was also trying with "forking" as > the > type and that was failing as well. That is not as simple as that -- we lived with "simple" for long time, but it was not covering some corner cases so we ended up using the sd_notify, since that was the only reliable way for systemd to know the service is working. For others interested in this topic, there was a long discussion in bug #2641, unfortunately without upstream solution: https://bugzilla.mindrot.org/show_bug.cgi?id=2641 Regards, -- Jakub Jelen Software Engineer S...
2018 Aug 22
2
openssh 7.6 and 7.7 on Oracle Linux 7 (compiled from source) doesn't start correctly with systemd
On Wed, Aug 22, 2018 at 11:23:11AM +0000, Peter Stuge wrote: > I guess that Oracle has patched sshd to call sd_notify() and thus Well, RedHat. > introduced dependency on the systemd libraries for sshd. I don't Yup % ldd /usr/sbin/sshd | grep syst libsystemd.so.0 => /lib64/libsystemd.so.0 (0x00007f0e5b715000) -- rgds Stephen
2018 Aug 21
2
openssh 7.6 and 7.7 on Oracle Linux 7 (compiled from source) doesn't start correctly with systemd
Latest Oracle Linux (7.5) and openssh 7.4 is bundled as an rpm. this runs fine. if I download openssh 7.6 or 7.7, compile it with the flags --with-pam and --with-pid-dir=/var/run and install it to /usr/local, modify the sshd.service file to point to /usr/local/sbin/sshd, the start hangs. The sshd.service files looks like this: [Unit] Description=OpenSSH server daemon Documentation=man:sshd(8)
2018 Aug 23
2
openssh 7.6 and 7.7 on Oracle Linux 7 (compiled from source) doesn't start correctly with systemd
Damien Miller wrote: > I agree: what is happening here seems to be mostly bad assumptions and > inflexibility inside systemd. I didn't say that, and I don't agree with that, to me it's welcome ambition rather than bad assumptions. Consider this: How could systemd determine whether startup of a foreground daemon completed successfully or failed? Other than explicit
2017 May 12
0
sshd and problems with network vs NetworkManager
...he common exit code for many sshd errors and some discussions about Type of sshd service: https://bugzilla.redhat.com/show_bug.cgi?id=1398360 In changelog of rpm between old and new eleases I only see: * Wed Mar 01 2017 Jakub Jelen <jjelen at redhat.com> - 6.6.1p1-35 + 0.9.3-9 - Do not send SD_NOTIFY from forked childern (#1381997) * Fri Feb 24 2017 Jakub Jelen <jjelen at redhat.com> - 6.6.1p1-34 + 0.9.3-9 - Add SD_NOTIFY code to help systemd to track running service (#1381997) Thanks in advance, Gianluca
2023 Jun 20
1
[PATCH] ssh-agent: add systemd socket-based activation
On 6/19/23 20:20, Damien Miller wrote: > > On Fri, 16 Jun 2023, Ronan Pigott wrote: > >> This adds support for systemd socket-based activation in the ssh-agent. >> When using socket activation, the -a flag value must match the socket >> path provided by systemd, as a sanity check. Support for this feature is >> enabled by the --with-systemd configure flag.
2020 Jan 10
2
Building and packaging httpd
Hi, Am rebuilding httpd from scratch to enable http2 and minimize extra modules on Cent Os 8. Am having trouble understanding the spec file [0] and systemd initialization [1][2][3] (these are very similar to those extracted from [4]). Why are 3 scripts needed to start the service and why is a pid setting not needed as used in the httpd.service file at [5]? Benson [0]
2016 Nov 21
42
[Bug 2641] New: Add systemd notify code to to track running server
https://bugzilla.mindrot.org/show_bug.cgi?id=2641 Bug ID: 2641 Summary: Add systemd notify code to to track running server Product: Portable OpenSSH Version: 7.3p1 Hardware: Other OS: Linux Status: NEW Severity: enhancement Priority: P5 Component: sshd Assignee:
2019 May 02
2
libvirtd not starting
Hi everybody, I've set up an new CentOS 7.6.1810 server. Then, via yum I installed qemu-kvm libvirt libvirt-python libguestfs-tools virt-install. There were no problems. But when I try to systemctl start libvirtd I get the following message: "libvirtd: process 472: arguments to dbus_message_iter_append_basic() were incorrect, assertion "_dbus_check_is_valid_utf8 (*string_p)"
2018 Aug 22
3
openssh 7.6 and 7.7 on Oracle Linux 7 (compiled from source) doesn't start correctly with systemd
...eports no error, while sshd isn't running. So what to do? A workaround for [re]start is to add sshd -t ExecStartPre linting, but that doesn't help at all with reload. It would be good to have sshd integrate with systemd here, but we need to avoid the libsystemd dependency. Fortunately, sd_notify() doesn't need to do all too much; almost everything is used before in the OpenSSH codebase, so it's easy enough to add local code for it. It's a sendmsg() with SCM_CREDENTIALS to the AF_UNIX SOCK_DGRAM named in $NOTIFY_SOCKET. The file descriptor passing code in monitor_fdpass.c sends...
2019 Jan 09
3
systemd
> On Wed, Jan 09, 2019 at 10:43:38AM -0500, Steve Clark wrote: >> I am trying to understand what After= means in a unit file. Does it >> mean after the specified target is up and operational or only that >> the target has been started? >> >> I have something that needs postgres but postgres needs to be >> operational not just started. Sometimes it can take a
2017 Nov 23
7
Compiling Samba 4.7 with systemd support on Fedora 26
The systemd unit file looks like as follows: [Unit] Description=Winbindd Service After=syslog.target network.target [Service] Environment=KRB5CCNAME=FILE:/run/samba/krb5cc_samba Type=notify NotifyAccess=all PIDFile=/var/run/samba/ ExecStart=/usr/local/samba/sbin/winbindd -D ExecReload=/usr/bin/kill -HUP $MAINPID LimitCORE=infinity [Install] @Rowland I am not blaming samba at all, certainly is
2019 May 02
0
Re: libvirtd not starting
...ove error is happening between libvirtd and systemd (when the daemon is started by systemd). >I do not have the slightest idea what is going on, especially as I >didn't change anything about the config files. > I'm not really sure what the daemon is supposed to tell systemd apart sd_notify() when it is starting. Maybe it is some value from the environment that we're sending and the error originates there, actually. Like the hostname or something similar. Again, having more logs would help as I too don't really know what is going on in there. >Any help would be apprecia...
2019 Jan 09
1
systemd
On 01/09/2019 11:36 AM, Jonathan Billings wrote: > On Wed, Jan 09, 2019 at 10:43:38AM -0500, Steve Clark wrote: >> I am trying to understand what After= means in a unit file. Does it >> mean after the specified target is up and operational or only that >> the target has been started? >> >> I have something that needs postgres but postgres needs to be >>
2020 Jan 10
0
Building and packaging httpd
...otify instead of Type=forking. While it's possible for systemd to keep track of all the subprocesses of a forking daemon, its difficult to determine if the service is "started". It uses the Pid file for that. With Type=notify, the daemon will send a notification back to systemd via sd_notify() when it is up, which makes it easier for systemd to know when a service has started, and start any dependencies or established that a target has been reached. You need a service that supports Type=notify, which httpd does. -- Jonathan Billings <billings at negate.org>
2014 Sep 26
2
systemd startup on centos 7
Ok I created my script this morning [Unit] Description=Connections After=network.target [Service] Type=notify ExecStart=/home/silentm/bin/mystart [Install] WantedBy=multi-user.target I put it in the correct directory, I rebooted and I see that my mystart script runs- programs start up but then they are killed with signal 15... Is there something else that allows them to continue to run? the
2016 Jul 13
2
Option configure
Under some circumstances for debugging purposes it may be helfpfull to know the PID used during startup as well. Just noted that this one is only listen in forked mode. Samba does fork with type=notify as well but systemd is waiting for sd_notify message in that mode. Anyway, for curiosity i recompiled samba with --without-systemd. If i use type=notify mode now and no PIDFile, systemctl start samba-ad-dc does not start samba but it shows the starte PID. There is an leftover samba process running whom can be killed with -9. root at dc1:...
2016 Jul 13
2
Option configure
Am 13.07.2016 um 12:09 schrieb Reindl Harald: > > > Am 12.07.2016 um 23:58 schrieb Achim Gottinger: >> With >> >> Type=notify >> NotifyAccess=all >> >> systemctl status samba-ad-dc >> ● samba-ad-dc.service - Samba AD Daemon >> Loaded: loaded (/lib/systemd/system/samba-ad-dc.service; enabled) >> Active: active (running) since Tue
2019 May 02
2
Re: libvirtd not starting
...td and systemd (when the daemon is > started by systemd). > >> I do not have the slightest idea what is going on, especially as I >> didn't change anything about the config files. >> > > I'm not really sure what the daemon is supposed to tell systemd apart > sd_notify() when it is starting.  Maybe it is some value from the > environment that we're sending and the error originates there, > actually.  Like the hostname or something similar.  Again, having more > logs would help as I too don't really know what is going on in there. > >> An...
2016 Jul 12
4
Option configure
Am 12.07.2016 um 23:21 schrieb Reindl Harald: > > > Am 12.07.2016 um 22:55 schrieb Achim Gottinger: >> Funny current debian service files use a wrong PIDFile path (should be >> /var/run/amba/samba.pid). >> >> If I use Type=forking and an wrong PIDFile systemctl start samba must be >> CTRL-C'ed. >> >> Type=notify works with or without an proper