Quantcast
Viewing all articles
Browse latest Browse all 19115

0007894: Unit files do not seem to respect StopWhenUnneeded=true/yes

I'm attempting to set several services up to require an authentication service and it should die if none of them are running. Here are the contents of the .service file for the auth service:<br /> <br /> ##############################################################<br /> <br /> <a href="mailto:root@centos7">root@centos7</a> [~]# cat /etc/systemd/system/authdaemond.service <br /> [Unit]<br /> ConditionPathExists=!/etc/eximdisable<br /> ConditionPathExists=!/var/cpanel/dnsonly<br /> Description=Courier authentication daemon<br /> #PartOf=courier-imapd.service courier-imapd-ssl.service courier-pop3d.service courier-pop3d-ssl.service exim.service<br /> StopWhenUnneeded=true<br /> <br /> [Service]<br /> Type=forking<br /> PIDFile=/var/spool/authdaemon/pid<br /> EnvironmentFile=/etc/authlib/authdaemonrc<br /> ExecStart=/usr/sbin/courierlogger -pid=/var/spool/authdaemon/pid $LOGGEROPTS -start /usr/libexec/courier-authlib/authdaemond<br /> <br /> [Install]<br /> WantedBy=multi-user.target<br /> <br /> ##############################################################<br /> <br /> These are the requires I mentioned: <br /> <br /> ##############################################################<br /> <br /> <a href="mailto:root@centos7">root@centos7</a> [~]# grep authdaemond /etc/systemd/system/{courier,exim}* | grep Requires<br /> /etc/systemd/system/courier-imapd.service:Requires=authdaemond.service<br /> /etc/systemd/system/courier-imapd-ssl.service:Requires=authdaemond.service<br /> /etc/systemd/system/courier-pop3d.service:Requires=authdaemond.service<br /> /etc/systemd/system/courier-pop3d-ssl.service:Requires=authdaemond.service<br /> /etc/systemd/system/courier.service:Requires=authdaemond.service<br /> /etc/systemd/system/exim.service:Requires=authdaemond.service<br /> <br /> ##############################################################<br /> <br /> Stopping all of those services has no effect on authdaemond:<br /> <br /> <br /> <br /> <a href="mailto:root@centos7">root@centos7</a> [~]# systemctl status authdaemond courier courier-imapd courier-imapd-ssl courier-pop3d courier-pop3d-ssl exim | egrep "\.service -|Active"<br /> authdaemond.service - Courier authentication daemon<br /> Active: active (running) since Mon 2014-11-17 12:29:24 EST; 31min ago<br /> courier-imapd.service - Courier IMAP Mail Server<br /> Active: active (running) since Mon 2014-11-17 13:00:06 EST; 23s ago<br /> courier-imapd.service - Courier IMAP Mail Server<br /> Active: active (running) since Mon 2014-11-17 13:00:06 EST; 23s ago<br /> courier-imapd-ssl.service - Courier IMAP SSL Mail Server<br /> Active: active (running) since Mon 2014-11-17 13:00:06 EST; 23s ago<br /> courier-pop3d.service - Courier POP3 Mail Server<br /> Active: active (running) since Mon 2014-11-17 13:00:06 EST; 23s ago<br /> courier-pop3d-ssl.service - Courier IMAP SSL Mail Server<br /> Active: active (running) since Mon 2014-11-17 13:00:06 EST; 23s ago<br /> exim.service - Exim is a Mail Transport Agent, which is the program that moves mail from one machine to another.<br /> Active: active (running) since Mon 2014-11-17 13:00:06 EST; 23s ago<br /> <br /> <br /> <br /> <a href="mailto:root@centos7">root@centos7</a> [~]# systemctl stop courier-imapd courier-imapd-ssl courier-pop3d courier-pop3d-ssl exim<br /> <a href="mailto:root@centos7">root@centos7</a> [~]# systemctl daemon-reload<br /> <a href="mailto:root@centos7">root@centos7</a> [~]# systemctl status authdaemond courier courier-imapd courier-imapd-ssl courier-pop3d courier-pop3d-ssl exim | egrep "\.service -|Active"<br /> authdaemond.service - Courier authentication daemon<br /> Active: active (running) since Mon 2014-11-17 12:29:24 EST; 31min ago<br /> courier-imapd.service - Courier IMAP Mail Server<br /> Active: inactive (dead) since Mon 2014-11-17 13:01:09 EST; 9s ago<br /> courier-imapd.service - Courier IMAP Mail Server<br /> Active: inactive (dead) since Mon 2014-11-17 13:01:09 EST; 9s ago<br /> courier-imapd-ssl.service - Courier IMAP SSL Mail Server<br /> Active: inactive (dead) since Mon 2014-11-17 13:01:09 EST; 9s ago<br /> courier-pop3d.service - Courier POP3 Mail Server<br /> Active: inactive (dead) since Mon 2014-11-17 13:01:09 EST; 9s ago<br /> courier-pop3d-ssl.service - Courier IMAP SSL Mail Server<br /> Active: inactive (dead) since Mon 2014-11-17 13:01:09 EST; 9s ago<br /> exim.service - Exim is a Mail Transport Agent, which is the program that moves mail from one machine to another.<br /> Active: inactive (dead) since Mon 2014-11-17 13:01:09 EST; 9s ago<br /> <br /> ##############################################################<br /> <br /> I've attempted daemon-reload, waiting to see if it finally catches on. The setting is visible in systemctl show authdaemond. I've attached the output.<br /> <br /> There are several bug reports out on this for FC.<br /> <br /> <a href="https://bugzilla.redhat.com/show_bug.cgi?id=997031">https://bugzilla.redhat.com/show_bug.cgi?id=997031</a> [<a href="https://bugzilla.redhat.com/show_bug.cgi?id=997031" target="_blank">^</a>]<br /> <a href="https://bugzilla.redhat.com/show_bug.cgi?id=704197">https://bugzilla.redhat.com/show_bug.cgi?id=704197</a> [<a href="https://bugzilla.redhat.com/show_bug.cgi?id=704197" target="_blank">^</a>]<br /> <br /> I was not able to find any mention of this in the changelog in the rpm. Though, I could have missed it.

Viewing all articles
Browse latest Browse all 19115

Trending Articles