On 12/14/16 13:28, Tony Nelson wrote: > On 16-12-14 00:09:52, Ed Greshko wrote: > ... >> I also don't know what "Invalid argument" is suppose to mean/indicate. > > The first time systemd reads the pid file it is still empty. That seems > sort of invalid. > Hummm.... The man pages for systemd has this... PIDFile= Takes an absolute file name pointing to the PID file of this daemon. Use of this option is recommended for services where Type= is set to forking. systemd will read the PID of the main process of the daemon after start-up of the service. systemd will not write to the file configured here, although it will remove the file after the service has shut down if it still exists. I read "systemd will read the PID of the main process of the daemon after start-up of the service" to mean it reads the PID file after sendmail starts and not before. So, I wouldn't think it should be empty. FWIW, when things are done "manually" using what is defined in the unit file. [root@f25cinn ~]# ll /run/sm-* ls: cannot access '/run/sm-*': No such file or directory [root@f25cinn ~]# /bin/touch /run/sm-client.pid [root@f25cinn ~]# /bin/chown smmsp:smmsp /run/sm-client.pid [root@f25cinn ~]# /sbin/restorecon /run/sm-client.pid [root@f25cinn ~]# /etc/mail/make [root@f25cinn ~]# ll /run/sm-* -rw-r--r--. 1 smmsp smmsp 0 Dec 14 13:43 /run/sm-client.pid [root@f25cinn ~]# cat /run/sm-client.pid [root@f25cinn ~]# /usr/sbin/sendmail -L sm-msp-queue -Ac -q1h [root@f25cinn ~]# cat /run/sm-client.pid 3037 /usr/sbin/sendmail -L sm-msp-queue -Ac -q1h So, sendmail is writing to sm-client.pid I wonder if there is a race condition within the systemd processes at times..... -- You're Welcome Zachary Quinto _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx