Re: Can't start sm-client with systemctl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]
  Powered by Linux