From owner-freebsd-questions@FreeBSD.ORG Thu Feb 5 20:27:11 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 831D9157 for ; Thu, 5 Feb 2015 20:27:11 +0000 (UTC) Received: from smtp108.ord1c.emailsrvr.com (smtp108.ord1c.emailsrvr.com [108.166.43.108]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5B72F6C5 for ; Thu, 5 Feb 2015 20:27:11 +0000 (UTC) Received: from smtp6.relay.ord1c.emailsrvr.com (localhost.localdomain [127.0.0.1]) by smtp6.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 3617A80515 for ; Thu, 5 Feb 2015 15:18:10 -0500 (EST) Received: by smtp6.relay.ord1c.emailsrvr.com (Authenticated sender: rhavenn-AT-rhavenn.net) with ESMTPSA id C5360804C9 for ; Thu, 5 Feb 2015 15:18:09 -0500 (EST) X-Sender-Id: rhavenn@rhavenn.net Received: from vash.rhavenn.local ([UNAVAILABLE]. [209.112.171.194]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:25 (trex/5.4.2); Thu, 05 Feb 2015 20:18:10 GMT Received: from localhost (4000@localhost [local]); by localhost (OpenSMTPD) with ESMTPA id f3f7a14b; for ; Thu, 5 Feb 2015 11:18:08 -0900 (AKST) Date: Thu, 5 Feb 2015 11:18:08 -0900 From: Henrik Hudson To: freebsd-questions@freebsd.org Subject: salt and openntpd service? Message-ID: <20150205201808.GA27749@vash.rhavenn.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2015 20:27:11 -0000 Trying to go around troubleshooting this... I'm working on setting up salt for server management and it's having problems starting the OpenNTPD port service. I used the same methods to get the OpenSMTPD port working and it works fine. I found a few threads in the saltstack github referring to salt hanging when services don't return correctly / cleanly and that this isn't a salt problem per se. I'm just looking for some pointers in troubleshooting. Is it a problem with the /etc/rc.subr script? The NTPD service itself? Running salt in debug mode shows that the salt minion just loops for ever. The service actually starts, but the salt master (debug enabled) doesn't actually see it and logs nothing. running: salt 'minion FQDN' state.highstate hangs and never exits salt. The OpenNTPD service itself does start. If I'm on the minion I can do: salt-call cmd.run '/usr/local/etc/rc.d/openntpd stop' [INFO ] Executing command '/sbin/zfs help || :' in directory '/root' [INFO ] Executing command '/usr/local/etc/rc.d/openntpd stop' in directory '/root' local: Stopping openntpd. Waiting for PIDS: 69922 This works. salt-call cmd.run '/usr/local/sbin/ntpd' [INFO ] Executing command '/sbin/zfs help || :' in directory '/root' [INFO ] Executing command '/usr/local/sbin/ntpd' in directory '/root' local: This works and exits. salt-call cmd.run '/usr/local/etc/rc.d/openntpd start' [INFO ] Executing command '/sbin/zfs help || :' in directory '/root' [INFO ] Executing command '/usr/local/etc/rc.d/openntpd start' in directory '/root' This doesn't work. So, a NTPD problem where it's not returning or a rc.subr problem? I don't believe this is a salt problem. henrik -- Henrik Hudson lists@rhavenn.net ----------------------------------------- "God, root, what is difference?" Pitr; UF