ZhangHuangbin wrote:Question: do you have /opt mounted on, for example, an external disk, a network file system like NFS?
No, i it is mounted on a local file system. However, it DOES use an LVM volume, although i dd not expect(ed) that this could be the problem. I run this instance of iRedMail on a virtual machine, and apart from this small issue, it works like a charm
What is also interesting is the fact that if you try to start the service
root@mx10 ~ # service iredapd start
Failed to start iredapd.service: Unit iredapd.service not found.
root@mx10 ~ #
you get a message that the service could not be found - but it DOES exist in /etc/systemd/system/iredapd.service
Then i re-enable the service:
root@mx10 ~ # systemctl enable iredapd
root@mx10 ~ #
And then i can start the service, as usual:
root@mx10 ~ # service iredapd start
root@mx10 ~ # service iredapd status
● iredapd.service - iRedAPD (A simple posfix policy server)
Loaded: loaded (/opt/iredapd/rc_scripts/iredapd.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2018-04-25 11:20:35 CEST; 13s ago
Process: 2729 ExecStart=/usr/bin/python /opt/iredapd/iredapd.py (code=exited, status=0/SUCCESS)
Main PID: 2731 (python)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/iredapd.service
└─2731 /usr/bin/python /opt/iredapd/iredapd.py
Apr 25 11:20:35 mx10 systemd[1]: Starting iRedAPD (A simple posfix policy server)...
Apr 25 11:20:35 mx10 systemd[1]: Started iRedAPD (A simple posfix policy server).
root@mx10 ~ #
But as soon as i reboot, i have to repeat the process.
Note: there is no difference in behavior if i use the systemctl instead of the service command directly after a reboot - they both don't seem to work.
If i look at the system log, it seems that shortly after the system starts booting, the service does get triggered:
Apr 25 11:17:18 mx10 systemd[1]: Starting iRedAPD (A simple posfix policy server)...
Apr 25 11:17:19 mx10 systemd[1]: iredapd.service: PID file /run/iredapd.pid not readable (yet?) after start: No such file or directory
Apr 25 11:17:19 mx10 systemd[1]: iredapd.service: Supervising process 2697 which is not our child. We'll most likely not notice when it exits.
Apr 25 11:17:19 mx10 systemd[1]: Started iRedAPD (A simple posfix policy server).
But once i logon, it seems to have ended.