LukeSmithxyz / emailwiz

Script that installs/configures a Dovecot, Postfix, Spam Assassin, OpenDKIM Debian web server
GNU General Public License v3.0
1.82k stars 301 forks source link

opendkim.service: Can't open PID file /run/opendkim/opendkim.pid (yet?) after start: Operation not permitted #323

Open XGerman009 opened 5 months ago

XGerman009 commented 5 months ago

Hi there, running emailwiz, and found that in the status of opendkim

OS: Ubuntu 22.04.4 LTS x86_64 Host: KVM RHEL 7.6.0 PC (i440FX + PIIX, 1996) Kernel: 5.15.0-107-generic Uptime: 45 mins Packages: 876 (dpkg) Shell: bash 5.1.16 Resolution: 1024x768 Terminal: /dev/pts/0 CPU: AMD Ryzen 5 3600 (1) @ 3.599GHz GPU: 00:02.0 Cirrus Logic GD 5446 Memory: 361MiB / 3912MiB

● opendkim.service - OpenDKIM Milter
     Loaded: loaded (/lib/systemd/system/opendkim.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/opendkim.service.d
             └─override.conf
     Active: active (running) since Mon 2024-06-10 15:37:00 CEST; 6s ago
       Docs: man:opendkim(8)
             man:opendkim.conf(5)
             man:opendkim-lua(3)
             man:opendkim-genkey(8)
             man:opendkim-genzone(8)
             man:opendkim-testkey(8)
             http://www.opendkim.org/docs.html
    Process: 24881 ExecStart=/usr/sbin/opendkim -P /run/opendkim/opendkim.pid -p inet:12301@localhost (code=exited, status=0/SUCCESS)
   Main PID: 24882 (opendkim)
      Tasks: 6 (limit: 4557)
     Memory: 1.9M
        CPU: 8ms
     CGroup: /system.slice/opendkim.service
             └─24882 /usr/sbin/opendkim -P /run/opendkim/opendkim.pid -p inet:12301@localhost

Jun 10 15:37:00 nwsynx.aeza.network systemd[1]: Starting OpenDKIM Milter...
Jun 10 15:37:00 nwsynx.aeza.network systemd[1]: opendkim.service: Can't open PID file /run/opendkim/opendkim.pid (yet?) after start: Operation not permitted
Jun 10 15:37:00 nwsynx.aeza.network systemd[1]: Started OpenDKIM Milter.
Jun 10 15:37:00 nwsynx.aeza.network opendkim[24882]: OpenDKIM Filter v2.11.0 starting (args: -P /run/opendkim/opendkim.pid -p inet:12301@localhost)

I looked at this solution, but it didn’t help. Thank you in advance