What does an OMV user have to do to automatically restart the postfix after booting up the system?
Postfix Problems
-
- OMV 7.x
- gderf
-
-
-
Thanks very much! I'll do that in the hope that it circumvents this topic's issue.
-
-
Thanks very much! I'll do that in the hope that it circumvents this topic's issue.
I tried this but sadly it didn't help so I abandoned the plugin. Since I run OMV from a small SSD I can get by without it.
-
service postfix restart
Not sure if this still works. As Debian has moved to SystemD it should be
systemctl start postfix
-
Not sure if this still works. As Debian has moved to SystemD it should be
systemctl start postfix
service postfix stop, service postfix start, service postfix restart all work for me.
-
-
Looks like the same issue as https://github.com/OpenMediaVa…ult-flashmemory/issues/33
Postfix is started by the systemd unit `postfix@-.service` by default in OMV. The starting of it should be delayed until folder2ram_startup.service is done setting up /var/spool
-
Thanks again to wenzhuo for the help. You are a master!
I have tested it and this this fixes two issues:
- Postfix getting stuck (worked around with a scheduled service reboot after system boot)
- Email about nginx does not exist/exists (which I could not workaround)
Edit the folder2ram_startup.service systemd: systemctl edit folder2ram_startup.service --full
Add the following to
the [Unit] sectionCodeRequiresMountsFor=/var Wants=tmp.mount Before=monit.service rrdcached.service minidlna.service nginx.service nmbd.serviceIt should look like this
Code[Unit] Description=folder2ram systemd service After=local-fs.target After=blk-availability.service DefaultDependencies=no RequiresMountsFor=/var Wants=tmp.mount Before=monit.service rrdcached.service minidlna.service nginx.service nmbd.serviceSave and reboot.
ENJOY!
-
`After=local-fs.target` should very well be `After=local-fs-pre.target`.
-
-
I made a test version of folder2ram available - https://github.com/OpenMediaVa…3#issuecomment-3150173387
-
With the test version installed I still get those nginx-E-Mails right after boot, then on the terminal
shows
Then manually doing
seems to fix it, though IDK for how long.
The system is fully up-to-date btw, I did omv-upgrade before further testing.
-
Postfix wasn't fully working yet with the test version.
You have to add a specific service to the systemd file.I fixed the issue by adding a new line
More info here.
I have solved both Postfix and nginx doesn't exist/exist emails, while sending a test email to verify Postfix is alive.
-
-
Postfix wasn't fully working yet with the test version.
You have to add a specific service to the systemd file.I fixed the issue by adding a new line
test package has been updated.
-
test package has been updated.
Chrony should be added as well; see chrony.service: Control process exited, code=exited, status=226/NAMESPACE
-
chrony added to test package.
-
-
For 8.x, I believe systemd-zram-generator is a better choice for the flashmemory plugin, 'cause we need per-folder granularity for faster startup. Folder2ram_startup.service currently ranks the 2nd on the systemd-analyze blame list.
-
Code
Display Morewenzhuo@omv:~$ systemd-analyze blame | head 1min 8.843s openmediavault-issue.service 41.783s folder2ram_startup.service 23.071s docker.service 12.237s containerd.service 11.882s php8.2-fpm.service 10.988s openmediavault-engined.service 10.459s networkd-dispatcher.service 10.122s armbian-zram-config.service 9.900s apparmor.service 8.218s systemd-resolved.service -
chrony added to test package.
If updating to the newest test package from the previous test package (both same version number of course) is done via just another
Codewget https://omv-extras.org/testing/folder2ram_0.4.2_all.deb -O folder2ram_0.4.2_all.deb sudo dpkg -i folder2ram_0.4.2_all.debthen I can report that I still get the nginx-E-Mails and senmail -q does still say "mail system is down".
-
-
If updating to the newest test package from the previous test package (both same version number of course) is done via just another
Codewget https://omv-extras.org/testing/folder2ram_0.4.2_all.deb -O folder2ram_0.4.2_all.deb sudo dpkg -i folder2ram_0.4.2_all.debthen I can report that I still get the nginx-E-Mails and senmail -q does still say "mail system is down".
7.0.1: folder2ram_startup.service timing issue · Issue #33 · OpenMediaVault-Plugin-Developers/openmediavault-flashmemoryI have a ROCK64 Armbian OMV tiny NAS system running off a SD card. Hence the need of this plugin. The initial version of OMV installed in it was, I believe,…github.com -
For 8.x, I believe systemd-zram-generator is a better choice for the flashmemory plugin, 'cause we need per-folder granularity for faster startup. Folder2ram_startup.service currently ranks the 2nd on the systemd-analyze blame list.
Allow me to propose an idea: Courtesy of ChatGPT
Changed my requirements a little bit: ChatGPT
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!