<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"></div><div dir="ltr"><br></div><div dir="ltr"><br><blockquote type="cite">On 17 Apr 2023, at 19:05, Bill Steinberg <bill@ponusridge.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><meta http-equiv="content-type" content="text/html; charset=utf-8"><span style="font-family: -webkit-standard; font-size: medium; -webkit-text-size-adjust: auto;">Hello systemd devel,</span><div style="-webkit-text-size-adjust: auto;"><br></div><div style="-webkit-text-size-adjust: auto;">I have a systemd service that I’ve run on prior versions of fedora which fails to start via systemd on Fedora release 37. It is a oneshot service that starts the distributed checksum clearing house’s dccifd service via a shell script. Here is the definition of the service:</div><div style="-webkit-text-size-adjust: auto;"><br></div><blockquote style="-webkit-text-size-adjust: auto; margin: 0px 0px 0px 40px; border: medium; padding: 0px;"><div><font face="Courier">[Unit]</font></div><div><font face="Courier">Description=Distributed Checksum Clearinghouses dccifd daemon</font></div><div><font face="Courier">After=syslog.target network.target</font></div><div><font face="Courier"><br></font></div><div><font face="Courier">[Service]</font></div><div><font face="Courier">Type=oneshot</font></div></blockquote></div></blockquote><div><br></div>Oneshot seems wrong.<div><br><blockquote type="cite"><div dir="ltr"><blockquote style="-webkit-text-size-adjust: auto; margin: 0px 0px 0px 40px; border: medium; padding: 0px;"><div><font face="Courier">RemainAfterExit=yes</font></div><div><font face="Courier">ExecStart=/var/dcc/libexec/rcDCC -m dccifd start</font></div></blockquote></div></blockquote>Does this run a background daemon?</div><div>Can you just run that daemon directly?</div><div>Hopefully that program can be run without demonising.</div><div><br></div><div><br><blockquote type="cite"><div dir="ltr"><blockquote style="-webkit-text-size-adjust: auto; margin: 0px 0px 0px 40px; border: medium; padding: 0px;"><div><font face="Courier">ExecStop=/var/dcc/libexec/rcDCC -m dccifd stop</font></div></blockquote></div></blockquote>If it is oneshot it does not need a stop</div><div><br><blockquote type="cite"><div dir="ltr"><blockquote style="-webkit-text-size-adjust: auto; margin: 0px 0px 0px 40px; border: medium; padding: 0px;"><div><font face="Courier">Restart=no</font></div><div><font face="Courier"><br></font></div><div><font face="Courier">[Install]</font></div><div><font face="Courier">WantedBy=multi-user.target</font></div></blockquote><div style="-webkit-text-size-adjust: auto;"><br></div><div style="-webkit-text-size-adjust: auto;"><br></div><div style="-webkit-text-size-adjust: auto;">The error in the journalctl log is:</div><div style="-webkit-text-size-adjust: auto;"><br></div><blockquote style="-webkit-text-size-adjust: auto; margin: 0px 0px 0px 40px; border: medium; padding: 0px;"><div><p style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="background-color: rgb(255, 255, 255);"><span style="font-variant-ligatures: no-common-ligatures;">systemd[1]: Starting </span><span style="font-variant-ligatures: no-common-ligatures;">dccifd</span><span style="font-variant-ligatures: no-common-ligatures;">.service - Distributed Checksum Clearinghouses </span><span style="font-variant-ligatures: no-common-ligatures;">dccifd</span><span style="font-variant-ligatures: no-common-ligatures;">daemon…</span></span></p></div><div><p style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="background-color: rgb(255, 255, 255);"><span style="font-variant-ligatures: no-common-ligatures;">systemd[1]: </span><span style="font-variant-ligatures: no-common-ligatures;">dccifd</span><span style="font-variant-ligatures: no-common-ligatures;">.service: Main process exited, code=killed, status=11/SEGV</span></span></p></div><div><p style="margin: 0px; font-stretch: normal; line-height: normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="background-color: rgb(255, 255, 255);"><span style="font-family: Menlo; font-variant-ligatures: no-common-ligatures;">systemd[1]: </span><span style="font-family: Menlo; font-variant-ligatures: no-common-ligatures;">dccifd</span><span style="font-variant-ligatures: no-common-ligatures;"><font face="Menlo">.service: Failed with result 'signal<span style="caret-color: rgb(217, 220, 85);">’</span>.</font></span></span></p></div><div><p style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="background-color: rgb(255, 255, 255);"><span style="font-variant-ligatures: no-common-ligatures;">systemd[1]: </span><span style="font-variant-ligatures: no-common-ligatures;">Failed to start </span><span style="font-variant-ligatures: no-common-ligatures;">dccifd</span><span style="font-variant-ligatures: no-common-ligatures;">.service - Distributed Checksum Clearinghouses </span><span style="font-variant-ligatures: no-common-ligatures;">dccifd</span><span style="font-variant-ligatures: no-common-ligatures;">daemon.</span></span></p><p style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span style="background-color: rgb(255, 255, 255);"><span style="font-variant-ligatures: no-common-ligatures;"><br></span></span></p></div></blockquote><span style="font-family: -webkit-standard; font-size: medium; -webkit-text-size-adjust: auto;">The two scripts in ExecStart and ExecStop run successfully outside of systemd. Any info as to why systemd fails when executing these scripts would be appreciated.</span><div style="-webkit-text-size-adjust: auto;"><br></div><div style="-webkit-text-size-adjust: auto;">Best,</div><div style="-webkit-text-size-adjust: auto;"><span style="background-color: rgb(255, 255, 255);">Bill Steinberg</span></div></div></blockquote></div></body></html>