1

Topic: iRedApd service not found after updating to 2.1

Dear Forum members,

I've upgraded from iRedmail 0.9.6 to 0.9.7 with iRedAdmin-Pro 2.7.0 SQL (from 2.6.0), on an Ubuntu 16.04 LTS.

After updated iRedApd from 2.0 to 2.1 iredapd service is missing, but with daemon-reload problem disappears:


root@mail:/home# systemctl iredapd status
Unknown operation iredapd.
root@mail:/home# systemctl status iredapd
● iredapd.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)
root@mail:/home# systemctl daemon-reload
root@mail:/home# systemctl status iredapd
● iredapd.service - iRedAPD (A simple posfix policy server)
   Loaded: loaded (/opt/iredapd/rc_scripts/iredapd.service; bad; vendor preset:
   Active: inactive (dead)
root@mail:/home# systemctl start iredapd
root@mail:/home# systemctl status iredapd
● iredapd.service - iRedAPD (A simple posfix policy server)
   Loaded: loaded (/opt/iredapd/rc_scripts/iredapd.service; bad; vendor preset:
   Active: active (running) since Sun 2017-08-06 13:42:16 CEST; 2s ago
  Process: 2553 ExecStart=/usr/bin/python /opt/iredapd/iredapd.py (code=exited,
Main PID: 2558 (python)
    Tasks: 1
   Memory: 18.6M
      CPU: 256ms
   CGroup: /system.slice/iredapd.service
           └─2558 /usr/bin/python /opt/iredapd/iredapd.py

Aug 06 13:42:14 mail systemd[1]: Starting iRedAPD (A simple posfix policy server
Aug 06 13:42:16 mail systemd[1]: iredapd.service: PID file /run/iredapd.pid not
Aug 06 13:42:16 mail systemd[1]: iredapd.service: Supervising process 2558 which
Aug 06 13:42:16 mail systemd[1]: Started iRedAPD (A simple posfix policy server)
lines 1-15/15 (END)...skipping...
● iredapd.service - iRedAPD (A simple posfix policy server)
   Loaded: loaded (/opt/iredapd/rc_scripts/iredapd.service; bad; vendor preset: enabled)
   Active: active (running) since Sun 2017-08-06 13:42:16 CEST; 2s ago
  Process: 2553 ExecStart=/usr/bin/python /opt/iredapd/iredapd.py (code=exited, status=0/SUCCESS)
Main PID: 2558 (python)
    Tasks: 1
   Memory: 18.6M
      CPU: 256ms
   CGroup: /system.slice/iredapd.service
           └─2558 /usr/bin/python /opt/iredapd/iredapd.py

Aug 06 13:42:14 mail systemd[1]: Starting iRedAPD (A simple posfix policy server)...
Aug 06 13:42:16 mail systemd[1]: iredapd.service: PID file /run/iredapd.pid not readable (yet?) after start: No such file or directory
Aug 06 13:42:16 mail systemd[1]: iredapd.service: Supervising process 2558 which is not our child. We'll most likely not notice when it exits.
Aug 06 13:42:16 mail systemd[1]: Started iRedAPD (A simple posfix policy server).



Please advise!

Thanks,
Balazs

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: iRedApd service not found after updating to 2.1

It shows service is active.

3

Re: iRedApd service not found after updating to 2.1

This can be reproduced upon rebooting. After reboot, iredapd does not start,  nor can be started, as shown above. I have to do a systemctl daemon-reload to be able to start iredapd at all.

4

Re: iRedApd service not found after updating to 2.1

Copying the iredapd.service into /lib/systemd/system  , removing the symlink from /etc/systemd/system/multi-user.target.wants/iredapd.service, and the issuing the command systemctl enable iredapd  (root@mail:/lib/systemd/system# systemctl enable iredapd
Created symlink from /etc/systemd/system/multi-user.target.wants/iredapd.service to /lib/systemd/system/iredapd.service.
)

makes the problem disappear after every reboot.

Topic can be closed as resolved, but it would be good, that the installer would copy the iredapd.service into the correct path.

Thanks,
Balazs