From owner-freebsd-users-jp@freebsd.org Sun Sep 15 00:46:44 2019 Return-Path: Delivered-To: freebsd-users-jp@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0B54CD4B05 for ; Sun, 15 Sep 2019 00:46:44 +0000 (UTC) (envelope-from kouya@ryuhoku.jp) Received: from mail.pv.ryuhoku.jp (ebisu.kna.jp [203.141.146.2]) (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 46W9g666XZz4g9n for ; Sun, 15 Sep 2019 00:46:42 +0000 (UTC) (envelope-from kouya@ryuhoku.jp) Received: from THX (thx.pv.ryuhoku.jp [192.168.200.224]) by mail.pv.ryuhoku.jp (8.14.5/8.14.5) with SMTP id x8F0Zm9a045751 for ; Sun, 15 Sep 2019 09:36:35 +0900 (JST) (envelope-from kouya@ryuhoku.jp) Message-ID: From: "kouya" To: Date: Sun, 15 Sep 2019 09:35:43 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-2022-jp"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00, FSL_HELO_NON_FQDN_1, STOX_REPLY_TYPE, TVD_RCVD_SINGLE, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail.pv.ryuhoku.jp X-Virus-Scanned: clamav-milter 0.97.4 at mail.pv.ryuhoku.jp X-Virus-Status: Clean X-Rspamd-Queue-Id: 46W9g666XZz4g9n X-Spamd-Bar: ++++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of kouya@ryuhoku.jp has no SPF policy when checking 203.141.146.2) smtp.mailfrom=kouya@ryuhoku.jp X-Spamd-Result: default: False [6.72 / 15.00]; ARC_NA(0.00)[]; FAKE_REPLY(1.00)[]; GREYLIST(0.00)[pass,body]; STOX_REPLY_TYPE(1.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; IP_SCORE(0.52)[asn: 2514(2.61), country: JP(-0.02)]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-users-jp@freebsd.org]; TO_DN_NONE(0.00)[]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; HFILTER_HELO_NORES_A_OR_MX(0.30)[mail.pv.ryuhoku.jp]; NEURAL_SPAM_MEDIUM(1.00)[1.000,0]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_LONG(1.00)[1.000,0]; HAS_X_PRIO_THREE(0.00)[3]; R_SPF_NA(0.00)[]; HFILTER_HELO_IP_A(1.00)[mail.pv.ryuhoku.jp]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:2514, ipnet:203.141.128.0/19, country:JP]; RCVD_COUNT_TWO(0.00)[2]; DMARC_NA(0.00)[ryuhoku.jp] X-Spam: Yes Subject: [FreeBSD-users-jp 96453] Re: rc.local X-BeenThere: freebsd-users-jp@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion relevant to FreeBSD communities in Japan List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Sep 2019 00:46:44 -0000 青木様 KIRIYAMA 様 有難うございます。 すみません daemon の使い方解りません。 command="daemon -f /usr/local/bin/picogw" reboot すると WARNING: cannot read shebang line from daemon WARNING: run_rc_command: cannot run daemon -f /usr/local/bin/picogw picogw は起動しないが、他の rc を処理し login purompt に戻る。 daemon 無 command="/usr/local/bin/picogw" reboot すると picogw は起動するが、login purompt に戻らず、 残りの rc を処理出来ず。 CtrlC で login puromput に戻り picogw は停止。 ターミナルから /usr/local/etc/rc.d/picogw start & 又は /usr/local/bin/picogw & とタイプすると、picogw は起動しpurompt に戻る /etc/rc.local に /usr/local/bin/picogw & とかでOS再起動で起動出来ればいいのですが。 /etc/rc.d/local start とタイプすると起動するのですが、OS再起動では無視される。 何処か私の設定が、間違っているかもしれないので、もうしばらく、調べています。 picogw 利用例 エアコン1の室内温度取得 http://hostname:8080/v1/echonet/airconditioner_1/indoortemperaturemeasurementvalue GET すると {"/v1/echonet/airconditioner_1/indoortemperaturemeasurementvalue":{"epc":187,"edt":[26],"value":[26]}} のようなデーターが戻るので edt か value の値を取り出す PUT することで、リモコンの操作と同じく簡単に出来ます。 その他 echonet のページを参照下さい。 java は理解できないので、perl で動作する script を作成し、ウェブ画面で、エアコンの制御をしています。 ソーラ発電、来年で10年、買い取り価格が、かなり安くなるみたいなので、自動で自家消費の量を増やす 方法を考えています。 http://www.kna.jp/sun/ 夏ー>冷房 売電余裕ありー>冷房温度下げる 売電余裕なしー>冷房温度上げる 売電無ー>冷房断 八代市昭和同仁町948    浦口 耕也 From owner-freebsd-users-jp@freebsd.org Sun Sep 15 01:07:14 2019 Return-Path: Delivered-To: freebsd-users-jp@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 96060D52D6 for ; Sun, 15 Sep 2019 01:07:14 +0000 (UTC) (envelope-from hrs@allbsd.org) Received: from mail.allbsd.org (mx.allbsd.org [IPv6:2001:2f0:104:e001::41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail.allbsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46WB6m0pLpz3CTg for ; Sun, 15 Sep 2019 01:07:11 +0000 (UTC) (envelope-from hrs@allbsd.org) Received: from mail-d.allbsd.org ([IPv6:2409:11:a740:4700:58:65ff:fe00:b0b]) (authenticated bits=56) by mail.allbsd.org (8.15.2/8.15.2) with ESMTPSA id x8F16jQN018605 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=OK) (Client CN "/CN=mail-d.allbsd.org", Issuer "/C=US/O=Let's+20Encrypt/CN=Let's+20Encrypt+20Authority+20X3"); Sun, 15 Sep 2019 10:06:56 +0900 (JST) (envelope-from hrs@allbsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=allbsd.org; s=20190220; t=1568509625; bh=3X+HfLntKVWexhQ8ROaSRGLH7oTvswLKKbdNqObfuEU=; h=Date:To:Cc:From:In-Reply-To:References; b=G+34PLROjrLu8k7yB+iZtruCKcIaB7QtMfiqGcwYnBuWUgiH/mmnIW5OJIhKiO3qG PlvK+b2hberkF/Htf9l+un6hQakADd9nZcEsd4p7bVY2m8ah3dC5wa3hbtm9SvaEnD uzK2GjD+4qUjZRGzWBLQoliPGhzFRgtHBAU523R4= Received: from alph.d.allbsd.org ([IPv6:2409:11:a740:4700:16:ceff:fe34:2700]) by mail-d.allbsd.org (8.15.2/8.15.2) with ESMTPS id x8F16ex8078548 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 15 Sep 2019 10:06:40 +0900 (JST) (envelope-from hrs@allbsd.org) Received: from localhost (localhost [[UNIX: localhost]]) (authenticated bits=0) by alph.d.allbsd.org (8.15.2/8.15.2) with ESMTPA id x8F16c3i078544; Sun, 15 Sep 2019 10:06:40 +0900 (JST) (envelope-from hrs@allbsd.org) Date: Sun, 15 Sep 2019 10:05:58 +0900 (JST) Message-Id: <20190915.100558.317008186515527684.hrs@allbsd.org> To: kouya@ryuhoku.jp Cc: freebsd-users-jp@freebsd.org From: Hiroki Sato In-Reply-To: References: X-Old-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-PGPkey-fingerprint: 6C0D 2353 27CF 80C7 901E FDD2 DBB0 7DC6 6F1F 737F X-Mailer: Mew version 6.8 on Emacs 26.2 Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha512; boundary="--Security_Multipart(Sun_Sep_15_10_05_58_2019_824)--" Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (mail.allbsd.org [IPv6:2001:2f0:104:e001:0:0:0:41]); Sun, 15 Sep 2019 10:07:05 +0900 (JST) X-Rspamd-Queue-Id: 46WB6m0pLpz3CTg X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=allbsd.org header.s=20190220 header.b=G+34PLRO; dmarc=none; spf=pass (mx1.freebsd.org: domain of hrs@allbsd.org designates 2001:2f0:104:e001::41 as permitted sender) smtp.mailfrom=hrs@allbsd.org X-Spamd-Result: default: False [-5.08 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[allbsd.org:s=20190220]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MV_CASE(0.50)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[allbsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[allbsd.org:+]; RCPT_COUNT_TWO(0.00)[2]; MID_CONTAINS_FROM(1.00)[]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:7514, ipnet:2001:2f0::/32, country:JP]; IP_SCORE(-1.98)[ip: (-8.72), ipnet: 2001:2f0::/32(-3.95), asn: 7514(2.76), country: JP(-0.02)] Subject: [FreeBSD-users-jp 96454] Re: rc.local X-BeenThere: freebsd-users-jp@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion relevant to FreeBSD communities in Japan List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Sep 2019 01:07:14 -0000 ----Security_Multipart(Sun_Sep_15_10_05_58_2019_824)-- Content-Type: Text/Plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit 佐藤です。 "kouya" wrote in : ko> すみません daemon の使い方解りません。 ko> ko> command="daemon -f /usr/local/bin/picogw" command は、実行ファイル以外は指定できません。 たとえば、次のようにすれば目的は達成できると思います。 ---- #!/bin/sh # . /etc/rc.subr name="picogw" rcvar="picogw_enable" command="/usr/local/bin/picogw" start_precmd=picogw_start_precmd picogw_start_precmd() { command_args="$command_args &" } load_rc_config $name run_rc_command "$1" ---- -- Hiroki ----Security_Multipart(Sun_Sep_15_10_05_58_2019_824)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iMgEABMKAC0WIQRsDSNTJ8+Ax5Ae/dLbsH3Gbx9zfwUCXX2Odg8caHJzQGFsbGJz ZC5vcmcACgkQ27B9xm8fc3+oxQIHbgN4WeEshRdS0FDjnZtJfOX8ofonKU3LgpU0 5YOv3PE9f6VNF1qYitsXqmM1ml6pBSiJOqCASKRdSTOP2RRA9skCCQG9rLDbsWtb c6Gw+posj0DuZ3W2gGpJ6ZRZ+0yvm7ewLxQdJ2psuz9UM8AWvweegpxJue93XRqg LuG0bBoa+FVJ2w== =fXjq -----END PGP SIGNATURE----- ----Security_Multipart(Sun_Sep_15_10_05_58_2019_824)----