diff --git a/FHEM/98_systemd_watchdog.pm b/FHEM/98_systemd_watchdog.pm index 128e9ee0f..995baecc3 100644 --- a/FHEM/98_systemd_watchdog.pm +++ b/FHEM/98_systemd_watchdog.pm @@ -248,7 +248,7 @@ sub watchdog_client_NotifySystemD($$) { Group=dialout
# Run ExecStartPre with root-permissions
PermissionsStartOnly=true
- ExecStartPre=-/bin/mkdir /var/run/fhem
+ ExecStartPre=-/bin/mkdir -p /var/run/fhem
ExecStartPre=/bin/chown -R fhem:dialout /var/run/fhem
# Run ExecStart with defined user and group
WorkingDirectory=/opt/fhem
@@ -316,7 +316,7 @@ sub watchdog_client_NotifySystemD($$) { Group=dialout
# Run ExecStartPre with root-permissions
PermissionsStartOnly=true
- ExecStartPre=-/bin/mkdir /var/run/fhem
+ ExecStartPre=-/bin/mkdir -p /var/run/fhem
ExecStartPre=/bin/chown -R fhem:dialout /var/run/fhem
# Run ExecStart with defined user and group
WorkingDirectory=/opt/fhem