mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-15 16:07:26 +00:00
b5b95422e7
When generating aliases db files, the newaliases tries to chdir /var/spool/postfix on the host. It would cause a failure if the host doesn't install postfix: newaliases: fatal: chdir /var/spool/postfix: No such file or directory Move this step from do_install to pkg_postinst to make sure newaliases and postmap run during the image creation. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
17 lines
427 B
Desktop File
17 lines
427 B
Desktop File
[Unit]
|
|
Description=Postfix Mail Transport Agent
|
|
After=syslog.target network.target
|
|
Conflicts=sendmail.service exim.service
|
|
|
|
[Service]
|
|
Type=forking
|
|
PIDFile=@LOCALSTATEDIR@/spool/postfix/pid/master.pid
|
|
ExecStartPre=-@SBINDIR@/check_hostname.sh
|
|
ExecStartPre=-@LIBEXECDIR@/postfix/aliasesdb
|
|
ExecStart=@SBINDIR@/postfix start
|
|
ExecReload=@SBINDIR@/postfix reload
|
|
ExecStop=@SBINDIR@/postfix stop
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|