On 13/12/16 15:49, Samuel Sieb wrote:
On 12/11/2016 07:40 PM, 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]: unable to write
pid to /var/spool/clientmqueue/sm-client.pid: Permission denied
This seems like a likely issue.
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.
Try "restorecon -Rv /var/spool/clientmqueue" and don't run the service
manually, just with systemctl.
My sm-client.service is:
[...]
Did you modify the service file or you're just showing what is in it?
If you modified it, then as Ed said, try it with the unmodified version first.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
My original 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=/run/sm-client.pid
Environment=SENDMAIL_OPTS=-q1h
EnvironmentFile=-/etc/sysconfig/sendmail
ExecStartPre=/bin/touch /run/sm-client.pid
ExecStartPre=/bin/chown smmsp:smmsp /run/sm-client.pid
ExecStartPre=-/sbin/restorecon /run/sm-client.pid
ExecStartPre=-/etc/mail/make
ExecStart=/usr/sbin/sendmail -L sm-msp-queue -Ac $SENDMAIL_OPTS $SENDMAIL_OPTARG
[Install]
WantedBy=multi-user.target
When run with systemctl, this gives the same error as posted earlier.
I have tried my modified version with the restorecon command but it makes no
difference (selinux is disabled too).
Both versions of sm-client.service do actually start sendmail.
Both produce the following in ps -aef:
smmsp 31351 1 0 15:54 ? 00:00:00 sendmail: Queue
runner@01:00:00 for /var/spool/clientmqueue
but both then fail with the timeout message.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx