On 13/12/16 15:42, Ed Greshko wrote:
On 12/12/16 11:40, Stephen Davies wrote:
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
Have you tried running with the default sm-client.service file instead of the modified
version?
Yes. That is why I have a modified version.
The original gave the same error so I tried to make the PID file available.
--
=============================================================================
Stephen Davies Consulting P/L Phone: 08-8177 1595
Adelaide, South Australia. Mobile:040 304 0583
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx