From nobody Tue Aug 03 13:12:50 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id B534711FD6E8 for ; Tue, 3 Aug 2021 13:12:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GfFfV4g68z4R3X for ; Tue, 3 Aug 2021 13:12:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7E3A713CD0 for ; Tue, 3 Aug 2021 13:12:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 173DCou9003884 for ; Tue, 3 Aug 2021 13:12:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 173DCovw003883 for bugs@FreeBSD.org; Tue, 3 Aug 2021 13:12:50 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 257586] [service] does not restart [devd] when called from a pkg-install script Date: Tue, 03 Aug 2021 13:12:50 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bsdpr@phoe.frmug.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257586 Bug ID: 257586 Summary: [service] does not restart [devd] when called from a pkg-install script Product: Base System Version: 12.2-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: bsdpr@phoe.frmug.org Note: I'm unsure where to file this bug report, either in base or ports. On a 12.2-STABLE host (rev 8b9b3d90de5dbeba0f8d68a154c657c0c139e5a9) I experience troubles when running service(8) to restart devd(8) within a pkg-install or pkg-deinstall script: devd is stopped but it fails to proper= ly restart. My pkg-install script is as shown bellow, the deinstall is almost identical apart from s/POST-INSTALL/POST-DEINSTALL/: #!/bin/sh=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 SERVICE=3D/usr/sbin/service if [ "$2" =3D POST-INSTALL ] ; then ${SERVICE} devd restart ${SERVICE} devd status fi When installing I observe that devd does not last long: # service devd status ; /usr/bin/make install ; echo postmake ; service devd status devd is running as pid 13426. =3D=3D=3D> Installing for uartdevconf-1.0 =3D=3D=3D> Checking if uartdevconf is already installed =3D=3D=3D> Registering installation for uartdevconf-1.0 Installing uartdevconf-1.0... Stopping devd. Waiting for PIDS: 13426. Starting devd. devd is running as pid 13514. postmake devd is not running. When starting (or restarting) devd after installation, from outside of the package installation environment, it lasts: # service devd status ; /usr/bin/make install ; echo postmake ; service devd status ; service devd start ; sleep 2 ; service devd status devd is running as pid 13983. =3D=3D=3D> Installing for uartdevconf-1.0 =3D=3D=3D> Checking if uartdevconf is already installed =3D=3D=3D> Registering installation for uartdevconf-1.0 Installing uartdevconf-1.0... Stopping devd. Waiting for PIDS: 13983. Starting devd. devd is running as pid 14077. postmake devd is not running. Starting devd. devd is running as pid 14114. That is a showstopper because this port/package relies on a set of devd rul= es for correct operation. --=20 You are receiving this mail because: You are the assignee for the bug.=