On 13/12/16 16:04, Ed Greshko wrote:
On 12/13/16 13:19, Stephen Davies wrote:
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.
I find that odd that it would produce the "same error" since the PID is defined in a
different place.
I just enable, and started sm-client service using the default service file and got this....
[root@meimei system]# systemctl status sm-client.service
● sm-client.service - Sendmail Mail Transport Client
Loaded: loaded (/usr/lib/systemd/system/sm-client.service; enabled; vendor preset
Active: active (running) since Tue 2016-12-13 13:31:53 CST; 12s ago
Process: 6189 ExecStart=/usr/sbin/sendmail -L sm-msp-queue -Ac $SENDMAIL_OPTS $SEN
Process: 6187 ExecStartPre=/etc/mail/make (code=exited, status=0/SUCCESS)
Process: 6183 ExecStartPre=/sbin/restorecon /run/sm-client.pid (code=exited, statu
Process: 6179 ExecStartPre=/bin/chown smmsp:smmsp /run/sm-client.pid (code=exited,
Process: 6178 ExecStartPre=/bin/touch /run/sm-client.pid (code=exited, status=0/SU
Main PID: 6191 (sendmail)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/sm-client.service
└─6191 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
Dec 13 13:31:55 meimei sm-msp-queue[6192]: t0UNCDHa000940: to=root, ctladdr=root (0/
Dec 13 13:31:56 meimei sm-msp-queue[6192]: t177YeYU002340: to=root, ctladdr=root (0/
Dec 13 13:31:56 meimei sm-msp-queue[6192]: t1D898XJ001430: to=root, ctladdr=root (0/
Dec 13 13:31:56 meimei sm-msp-queue[6192]: t12AqT9A005005: to=root, ctladdr=root (0/
Dec 13 13:31:56 meimei sm-msp-queue[6192]: t1I1m4Aa001441: to=root, ctladdr=root (0/
Dec 13 13:31:56 meimei sm-msp-queue[6192]: t126qS13000933: to=root, ctladdr=root (0/
Dec 13 13:31:57 meimei sm-msp-queue[6192]: t177YeuF001082: to=root, ctladdr=root (0/
Dec 13 13:31:57 meimei sm-msp-queue[6192]: t1I1m46r000920: to=root, ctladdr=root (0/
Dec 13 13:31:57 meimei sm-msp-queue[6192]: t1D897sZ000881: to=root, ctladdr=root (0/
Dec 13 13:31:57 meimei sm-msp-queue[6192]: t2G9U1ZL007122: to=egreshko, ctladdr=egre
I agree that the "same error" is weird - but it is happening.
Here is the output from a start of the original service:
[root@mustang system]# systemctl status sm-client
● sm-client.service - Sendmail Mail Transport Client
Loaded: loaded (/usr/lib/systemd/system/sm-client.service; enabled; vendor
preset: disabled)
Active: failed (Result: timeout) since Tue 2016-12-13 15:56:21 ACDT; 11min ago
Process: 31350 ExecStart=/usr/sbin/sendmail -L sm-msp-queue -Ac
$SENDMAIL_OPTS $SENDMAIL_OPTARG (code=exited, status=0/SUCCESS)
Process: 31346 ExecStartPre=/etc/mail/make (code=exited, status=0/SUCCESS)
Process: 31343 ExecStartPre=/sbin/restorecon /run/sm-client.pid
(code=exited, status=0/SUCCESS)
Process: 31340 ExecStartPre=/bin/chown smmsp:smmsp /run/sm-client.pid
(code=exited, status=0/SUCCESS)
Process: 31336 ExecStartPre=/bin/touch /run/sm-client.pid (code=exited,
status=0/SUCCESS)
Dec 13 15:54:50 mustang.sdc.com.au systemd[1]: Starting Sendmail Mail
Transport Client...
Dec 13 15:54:51 mustang.sdc.com.au sm-msp-queue[31351]: starting daemon
(8.15.1): queueing@01:00:00
Dec 13 15:54:51 mustang.sdc.com.au sm-msp-queue[31351]: unable to write pid to
/var/spool/clientmqueue/sm-client.pid: Permission denied
Dec 13 15:54:51 mustang.sdc.com.au systemd[1]: sm-client.service: Failed to
read PID from file /run/sm-client.pid: Invalid argument
Dec 13 15:56:21 mustang.sdc.com.au systemd[1]: sm-client.service: Start
operation timed out. Terminating.
Dec 13 15:56:21 mustang.sdc.com.au systemd[1]: Failed to start Sendmail Mail
Transport Client.
Dec 13 15:56:21 mustang.sdc.com.au systemd[1]: sm-client.service: Unit entered
failed state.
Dec 13 15:56:21 mustang.sdc.com.au systemd[1]: sm-client.service: Failed with
result 'timeout'.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx