Date: Sat, 14 Sep 2019 10:11:20 +0900 From: KIRIYAMA Kazuhiko <kiri@truefc.org> To: junchoon@dec.sakura.ne.jp Cc: freebsd-users-jp@freebsd.org Subject: [FreeBSD-users-jp 96452] Re: rc.local Message-ID: <201909140111.x8E1BKmN062477@kx.truefc.org> In-Reply-To: <20190913194928.8507646a1d76acfe2dbbae13@dec.sakura.ne.jp> References: <C08496BEFD8A4EE9A42EEA8E1F1DE3FF@pv.ryuhoku.jp> <20190913194928.8507646a1d76acfe2dbbae13@dec.sakura.ne.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 13 Sep 2019 19:49:28 +0900, Tomoaki AOKI wrote: > > $B@DLZ(B@$BL>8E20$G$9!#(B > > rc.local$B$r;H$&>l9g!"$?$V$s@hF,$K(B > . /etc/rc.conf > $B$rF~$l$kI,MW$,$"$C$?$H;W$$$^$9!#!!$,!"$$$D$^$G%5%]!<%H$5$l$k$+$O(B > $BJ,$+$j$^$;$s$N$G!"(Brc.d$BMQ$NJ}$G$$$/$H!"@hF,$N%3%a%s%H%V%m%C%/$N(B $B>/$J$/$H$b(B bsdinstall(8) $B$G(B installerconfig $B$r;H$C$F$$$k8B$j(B $BL5$/$J$k$3$H$O$J$$$G$7$g$&!%(B > 2$B9TL\0J9_$K(B > > # PROVIDE picogw > # REQUIRE DAEMON > > $B$rF~$l$k$H@5>o$K$J$C$?$j$7$^$;$s$+!)(B > $B$3$l$i$OC1$J$k%3%a%s%H$G$O$J$/!"(Brc.d$B$N%9%/%j%W%H$N5/F0=g$r(B > $B7h$a$k$?$a$KI,?\$@$C$?$H;W$$$^$9!#(B > > $B!V(B# PROVIDE pigcow$B!W$O!V(Bpigcow$B$H$$$&%5!<%S%9$rDs6!$7$^$9!W(B > $B!V(B# REQUIRE DAEMON$B!W$O!VF0:n$K$O(BDAEMON$B$H$$$&%5!<%S%9$,I,MW$G$9!W(B > $B$H$$$&0UL#$K$J$j$^$9!#(B > $B$b$7$+$9$k$H!"(Bpigcow$B$K0MB8$9$k%5!<%S%9$,:#8e$H$b$"$jF@$J$$$J$i(B > $B!V(B# PROVIDE$B!W$N9T$OL5$/$F$b;Y>c$J$$$+$b$7$l$^$;$s$,(B...$B!#(B > > $B$J$*!"(Bpigcow$B$NF0:n$N$?$a$K%7%9%F%`%G!<%b%s$H$7$FF0:n$9$k(B > $B2?$i$+$N%5!<%S%9!J(B# REQUIRE DAEMON$B$r;XDj$7$F$$$k%5!<%S%9!K$,(B > $BI,MW$J>l9g!"(B > > # REQUIRE DAEMON > > $B$NBe$o$j$K(B > > # REQUIRE LOGIN > > $B$H$7$F$_$F2<$5$$!#!!FCDj$N%5!<%S%9$,J,$+$C$F$$$k>l9g!"Nc$($P(B > ftpd (/rtc/rc.d/ftpd) $B$5$(F0$$$F$$$l$P$$$$>l9g!"(B > > # REQUIRE ftpd > > $B$G$$$1$kH&$G$9!#!!J#?t$"$l$PF1$89T$K%9%Z!<%96h@Z$j$GNs5-$9$l$P(B > $B@_Dj$G$-$^$9!#!!$3$N$"$?$j!"(Bnode$B$NF0:n>r7o$rGD0.$7$F$$$^$;$s$N$G(B... $B$=$N%G!<%b%s$NA0$K(B foo $BF0:n$7$F$$$k$3$H$,I,MW$J$i(B # BEFORE: foo $B$NJ}$,3N<B$+$H!%(B > > $B$3$3$^$G$O(Brc.d$B%9%/%j%W%H$N!V$*:nK!!W$NNNJ,!J:G0-!"(B/usr/local$B$,(B > /$B$+$iFHN)$7$?%Q!<%F%#%7%g%s$N>l9g!"$3$l$,%^%&%s%H$5$l$kA0$K(B > $B5/F0$7$h$&$H$7$F<:GT$9$kEy$N860x$K$J$jF@$k!K$G$9$,!"$3$l$@$1$G(B > $BBLL\$J$i!"(B > > command="/usr/local/bin/picogw" > > $B$r(B > > command="daemon /usr/local/bin/picogw" > > $B$K$9$l$P$$$1$k$+$b$7$l$^$;$s!#(B > daemon$B%3%^%s%I$N%*%W%7%g%s$O(Bman option$B$GD4$Y$FE,59(B > $BI,MW$J$b$N$r@_Dj$7$F2<$5$$!#(B > $BB?J,!"$3$3$^$GI,MW$K$J$j$=$&$J5$$,$7$^$9!#(B $B$H$3$m$G(B picogw[1] $B$C$F$N$O$I$s$J%W%m%0%i%`$J$s$+$HD4$Y$?$i(B OSS IoT $B%2!<%H%&%'%$$J$s$G$9$M!%$&$A$b(B HEMS $B$J$N$G$d$C$F$_$h(B $B$&$H;W$C$F$k$s$G$9$,!$<B:]$O$I$s$J$+$s$8$G$9$+!)(B $B!t(B $B$b$7!$;H$($=$&$J$i(B ports $B2=$7$^$9!%(B [1] https://toyhack.club/2019/03/picogw-overview/ > > > On Fri, 13 Sep 2019 16:44:52 +0900 > "kouya" <kouya@ryuhoku.jp> wrote: > > > $B>/$7CTJr$,F~$j$+$1$?O7?M$G$9!#(B > > > > OS FreeBSD ah45.pv.ryuhoku.jp 12.0-RELEASE-p10 FreeBSD 12.0-RELEASE-p10 > > GENERIC amd64 $B$G$9!#(B > > > > /etc/rc.local > > ------------------$B:!=h$+$i(B------------------- > > # > > /usr/local/bin/picogw & > > # > > ------------------$B:!=h$^$G(B------------------- > > > > $BLdBj$J$N$O(B reboot $B$7$F$b(B rc.local $B$K=q$$$?(B $B$,5/F0$7$J$$;v$G$9!#(B > > > > OS $B5/F08e(B console $B$G(B /etc/rc.d/local start $B$H(Btype$B$9$k$H(B picogw $B$,5/F0$7(B > > console $B$KLa$j(B > > $BLdBj$J$/F0$$$F$$$^$9!#(B > > > > $B$I$3$+$K(B /usr/local/etc/rc.d $B$r;H$$$J$5$$!"8+$?$$$J$3$H$,=q$$$F$"$C$?$N$G!#(B > > > > /usr/local/etc/rc.d $B$K(B picogw $B$H$7$F(B > > ------------------$B:!=h$+$i(B------------------- > > #!/bin/sh > > # > > . /etc/rc.subr > > name="picogw" > > rcvar="picogw_enable" > > command="/usr/local/bin/picogw" > > load_rc_config $name > > run_rc_command "$1" > > # > > ------------------$B:!=h$^$G(B------------------- > > $B$rEPO?(B > > > > /etc/rc.conf $B$K(B > > ------------------$B:!=h$+$i(B------------------- > > picogw_enable="YES" > > ------------------$B:!=h$^$G(B------------------- > > > > $B$G:F5/F0$9$k$H!"(Bpicogw $B$O5/F0$9$k$,!"(Bconsole $B$rJ|$5$J$$0Y!"(B > > $B8e$N%5!<%S%9$,!"5/F0$7$J$$!#(B > > > > /usr/local/bin/picogw $B$NFbMF!!(Blink --> > > /usr/local/lib/nod_module/picogw/bin/picogw > > ------------------$B:!=h$+$i(B------------------- > > #!/usr/bin/env node > > const forever = require('forever-monitor'); > > // Sometimes, npm i -g target directory is missing from module search path. > > // So set this script module path as current path. > > let pi = __filename.lastIndexOf('node_modules'); > > let pathstr; > > if( pi == -1 ){ > > pathstr = require('path').dirname(__filename); > > } else { > > pathstr = __filename.substring( 0,pi )+'node_modules'; > > } > > const child = new > > (forever.Monitor)(require.resolve('picogw'),{cwd:pathstr,args:process.argv}); > > child.start(); > > ------------------$B:!=h$^$G(B------------------- > > #!/usr/bin/env node $B$N9T$r(B node --> /usr/local/bin/node $B$KJQ99(B > > > > $B?=$7Lu$"$j$^$;$s!"$I$3$N4V0c$$$+!"8+Ev$,IU$-$^$;$s!"$465<x4j$($?$i9,$$$G$9!#(B > > > > /etc/rc.local $B$G5/F0=PMh$k$N$,NI$$$N$G$9$,!#(B > > > > ??? $B$J$s$+(B rc $BJQ$G$9$M(B > > moused $B;_$a$h$&$H(B moused_enable="NO" $B$GBLL\(B moused_type="NO" $B$GDd;_(B? > > > > $BH,Be;T><OBF1?ND.#9#4#8(B > > > > $B!!!!!!1:8}!!9LLi(B > > > > _______________________________________________ > > freebsd-users-jp@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-users-jp > > To unsubscribe, send any mail to "freebsd-users-jp-unsubscribe@freebsd.org" > > > -- > $B@DLZ(B $BCNL@(B [Tomoaki AOKI] <junchoon@dec.sakura.ne.jp> > _______________________________________________ > freebsd-users-jp@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-users-jp > To unsubscribe, send any mail to "freebsd-users-jp-unsubscribe@freebsd.org" > --- $B6M;3(B $BOBI'(B(KIRIYAMA Kazuhiko)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909140111.x8E1BKmN062477>