<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello Michael,<div class=""><br class=""></div><div class="">please test the told COMMAND LINE with multiple commands, before closing.</div><div class="">Many thanks!</div><div class=""><br class=""></div><div class="">Best regards,</div><div class="">Harald<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Am 01.09.2022 um 11:03 schrieb Debian Bug Tracking System <<a href="mailto:owner@bugs.debian.org" class="">owner@bugs.debian.org</a>>:</div><br class="Apple-interchange-newline"><div class="">This is an automatic notification regarding your Bug report<br class="">which was filed against the systemd package:<br class=""><br class="">#1018872: systemd.service COMMAND LINE misses command search, if starting with "+".<br class=""><br class="">It has been closed by Michael Biebl <<a href="mailto:biebl@debian.org" class="">biebl@debian.org</a>>.<br class=""><br class="">Their explanation is attached below along with your original report.<br class="">If this explanation is unsatisfactory and you have not received a<br class="">better one in a separate message then please contact Michael Biebl <<a href="mailto:biebl@debian.org" class="">biebl@debian.org</a>> by<br class="">replying to this email.<br class=""><br class=""><br class="">-- <br class="">1018872: <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1018872" class="">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1018872</a><br class="">Debian Bug Tracking System<br class="">Contact <a href="mailto:owner@bugs.debian.org" class="">owner@bugs.debian.org</a> with problems<br class=""><br class=""><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Von: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Michael Biebl <<a href="mailto:biebl@debian.org" class="">biebl@debian.org</a>><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Betreff: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">Aw: Bug#1018872: systemd.service COMMAND LINE misses command search, if starting with "+".</b><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Datum: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">1. September 2022 um 10:59:11 MESZ<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">An: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Harald Bergmann <<a href="mailto:harald.bergmann@protronis.com" class="">harald.bergmann@protronis.com</a>>, <a href="mailto:1018872-done@bugs.debian.org" class="">1018872-done@bugs.debian.org</a><br class=""></span></div><br class=""><br class="">Am 01.09.22 um 10:13 schrieb Harald Bergmann:<br class=""><blockquote type="cite" class="">Package: systemd<br class="">Version: 247.3-7<br class="">Severity: minor<br class="">Dear Maintainer,<br class="">*** Reporter, please consider answering these questions, where appropriate ***<br class=""> * What led up to the situation?<br class="">Implementing some systemd.service, which requires preparation by ExecStartPre.<br class=""> * What exactly did you do (or not do) that was effective (or<br class=""> ineffective)?<br class="">Added: ExecStartPre=+mkdir -p <folder> ; +chown -R <user>:<group> <folder><br class=""> * What was the outcome of this action?<br class="">Result via service start and via analysing (sudo systemd-analyze verify<br class=""><service>):<br class="">Command mkdir is not executable: Datei oder Verzeichnis nicht gefunden<br class=""> * What outcome did you expect instead?<br class="">Execution without error message.<br class="">*** End of the template - remove these template lines ***<br class="">Workaround using a little different COMMAND LINE:<br class="">ExecStartPre=+/bin/mkdir -p <folder> ; +chown -R <user>:<group> <folder<br class="">Identified problem:<br class="">The command is not found at the standard paths. This happens only, if the<br class="">command is prefixed with "+" or (likely) any other possible prefix character,<br class="">which "man systemd.service" tells (not tested).<br class="">Because the workaround is easy, the bug is classified as minor.<br class=""></blockquote><br class="">Seems to work fine here (both with systemd v247 from stable and v251 from unstable):<br class=""><br class=""># adduser test<br class=""><br class=""># systemctl cat test.service<br class=""># /etc/systemd/system/test.service<br class="">[Unit]<br class="">Description=Test<br class=""><br class="">[Service]<br class="">Type=oneshot<br class="">User=test<br class="">ExecStartPre=+mkdir -p /run/foo<br class="">ExecStartPre=+chown test /run/foo<br class="">ExecStart=echo "Hello World"<br class=""><br class=""># systemctl start test.service<br class=""><br class=""># systemctl status test.service<br class="">root@pluto:~# systemctl status test<br class="">○ test.service - Test<br class=""> Loaded: loaded (/etc/systemd/system/test.service; static)<br class=""> Active: inactive (dead)<br class=""><br class="">Sep 01 10:54:42 pluto systemd[1]: Starting Test...<br class="">Sep 01 10:54:42 pluto echo[94045]: Hello World<br class="">Sep 01 10:54:42 pluto systemd[1]: test.service: Deactivated successfully.<br class="">Sep 01 10:54:42 pluto systemd[1]: Finished Test.<br class=""><br class=""># ls -ld /run/foo<br class="">drwxr-xr-x 2 test root 40 1. Sep 10:54 /run/foo<br class=""><br class=""><br class=""><br class=""><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Von: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Harald Bergmann <<a href="mailto:harald.bergmann@protronis.com" class="">harald.bergmann@protronis.com</a>><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Betreff: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">systemd.service COMMAND LINE misses command search, if starting with "+".</b><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Datum: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">1. September 2022 um 10:13:45 MESZ<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">An: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Debian Bug Tracking System <<a href="mailto:submit@bugs.debian.org" class="">submit@bugs.debian.org</a>><br class=""></span></div><br class=""><br class="">Package: systemd<br class="">Version: 247.3-7<br class="">Severity: minor<br class=""><br class="">Dear Maintainer,<br class=""><br class="">*** Reporter, please consider answering these questions, where appropriate ***<br class=""><br class=""> * What led up to the situation?<br class="">Implementing some systemd.service, which requires preparation by ExecStartPre.<br class=""><br class=""> * What exactly did you do (or not do) that was effective (or<br class=""> ineffective)?<br class="">Added: ExecStartPre=+mkdir -p <folder> ; +chown -R <user>:<group> <folder><br class=""><br class=""> * What was the outcome of this action?<br class="">Result via service start and via analysing (sudo systemd-analyze verify<br class=""><service>):<br class="">Command mkdir is not executable: Datei oder Verzeichnis nicht gefunden<br class=""><br class=""> * What outcome did you expect instead?<br class="">Execution without error message.<br class=""><br class="">*** End of the template - remove these template lines ***<br class=""><br class="">Workaround using a little different COMMAND LINE:<br class="">ExecStartPre=+/bin/mkdir -p <folder> ; +chown -R <user>:<group> <folder<br class=""><br class="">Identified problem:<br class="">The command is not found at the standard paths. This happens only, if the<br class="">command is prefixed with "+" or (likely) any other possible prefix character,<br class="">which "man systemd.service" tells (not tested).<br class=""><br class="">Because the workaround is easy, the bug is classified as minor.<br class=""><br class=""><br class="">-- Package-specific info:<br class=""><br class="">-- System Information:<br class="">Debian Release: 11.4<br class=""> APT prefers stable-updates<br class=""> APT policy: (500, 'stable-updates'), (500, 'stable')<br class="">Architecture: amd64 (x86_64)<br class=""><br class="">Kernel: Linux 5.10.0-16-amd64 (SMP w/3 CPU threads)<br class="">Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set<br class="">Shell: /bin/sh linked to /bin/dash<br class="">Init: systemd (via /run/systemd/system)<br class="">LSM: AppArmor: enabled<br class=""><br class="">Versions of packages systemd depends on:<br class="">ii adduser 3.118<br class="">ii libacl1 2.2.53-10<br class="">ii libapparmor1 2.13.6-10<br class="">ii libaudit1 1:3.0-2<br class="">ii libblkid1 2.36.1-8+deb11u1<br class="">ii libc6 2.31-13+deb11u3<br class="">ii libcap2 1:2.44-1<br class="">ii libcrypt1 1:4.4.18-4<br class="">ii libcryptsetup12 2:2.3.7-1+deb11u1<br class="">ii libgcrypt20 1.8.7-6<br class="">ii libgnutls30 3.7.1-5+deb11u1<br class="">ii libgpg-error0 1.38-2<br class="">ii libip4tc2 1.8.7-1<br class="">ii libkmod2 28-1<br class="">ii liblz4-1 1.9.3-2<br class="">ii liblzma5 5.2.5-2.1~deb11u1<br class="">ii libmount1 2.36.1-8+deb11u1<br class="">ii libpam0g 1.4.0-9+deb11u1<br class="">ii libseccomp2 2.5.1-1+deb11u1<br class="">ii libselinux1 3.1-3<br class="">ii libsystemd0 247.3-7<br class="">ii libzstd1 1.4.8+dfsg-2.1<br class="">ii mount 2.36.1-8+deb11u1<br class="">ii util-linux 2.36.1-8+deb11u1<br class=""><br class="">Versions of packages systemd recommends:<br class="">ii dbus 1.12.20-2<br class="">ii systemd-timesyncd [time-daemon] 247.3-7<br class=""><br class="">Versions of packages systemd suggests:<br class="">ii policykit-1 0.105-31+deb11u1<br class="">pn systemd-container <none><br class=""><br class="">Versions of packages systemd is related to:<br class="">pn dracut <none><br class="">ii initramfs-tools 0.140<br class="">ii libnss-systemd 247.3-7<br class="">ii libpam-systemd 247.3-7<br class="">ii udev 247.3-7<br class=""><br class="">-- no debconf information<br class=""><br class=""><br class=""></div></blockquote></div><br class=""></div></body></html>