If I try to start sm-client with systemctl, I get:
Dec 12 13:32:04 mustang.sdc.com.au sm-msp-queue2[5951]: starting daemon
(8.15.1): queueing@01:00:00
Dec 12 13:32:04 mustang.sdc.com.au sm-msp-queue2[5951]: unable to write pid to
/var/spool/clientmqueue/sm-client.pid: Permission denied
Dec 12 13:33:34 mustang.sdc.com.au systemd[1]: sm-client.service: Start
operation timed out. Terminating.
Dec 12 13:33:34 mustang.sdc.com.au systemd[1]: Failed to start Sendmail Mail
Transport Client.
Dec 12 13:33:34 mustang.sdc.com.au systemd[1]: sm-client.service: Unit entered
failed state.
Dec 12 13:33:34 mustang.sdc.com.au systemd[1]: sm-client.service: Failed with
result 'timeout'.
However, if I use:
/usr/sbin/sendmail -L sm-msp-queue2 -Ac -q1h
the queue manager starts and runs as expected.
I am 99.99% sure that all my directory permissions are correct and give smmsp
write access to the relevant directories. Certainly /var/spool/clientmqueue.
My sm-client.service is:
[Unit]
Description=Sendmail Mail Transport Client
After=syslog.target network.target sendmail.service
Conflicts=postfix.service exim.service
BindTo=sendmail.service
[Service]
Type=forking
PIDFile=/var/spool/clientmqueue/sm-client.pid
Environment=SENDMAIL_OPTS=-q1h
EnvironmentFile=-/etc/sysconfig/sendmail
ExecStartPre=/bin/touch /var/spool/clientmqueue/sm-client.pid
ExecStartPre=/bin/chown smmsp:smmsp /var/spool/clientmqueue/sm-client.pid
ExecStartPre=/bin/chmod 660 /var/spool/clientmqueue/sm-client.pid
ExecStartPre=-/etc/mail/make
ExecStart=/usr/sbin/sendmail -L sm-msp-queue2 -Ac $SENDMAIL_OPTS $SENDMAIL_OPTARG
[Install]
WantedBy=multi-user.target
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx