Closed tofutim closed 9 years ago
Still working on figuring this out. Here are my rc.d files
namecoind:
#!/bin/sh
#
# $$
#
# PROVIDE: namecoind
# REQUIRE: SERVERS cleanvar
# BEFORE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable pdns_recursor:
#
# namecoind_enable="YES"
#
. /etc/rc.subr
name=namecoind
rcvar=namecoind_enable
command=/usr/local/bin/namecoind
# set defaults
namecoind_enable=${namecoind_enable:-"YES"}
load_rc_config ${name}
run_rc_command "$1"
dnschain:
#!/bin/sh
#
# $$
#
# PROVIDE: dnschain
# REQUIRE: SERVERS cleanvar
# BEFORE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable dnschain:
#
# dnschain_enable="YES"
#
. /etc/rc.subr
name=dnschain
rcvar=dnschain_enable
command=/usr/local/bin/dnschain
# set defaults
dnschain_enable=${dnschain_enable:-"YES"}
load_rc_config ${name}
run_rc_command "$1"
And the results:
root@papaya:~ # service namecoind start
Starting namecoind.
Warning: To use namecoind, you must set rpcpassword=<password>
in the configuration file: /.namecoin/namecoin.conf
If the file does not exist, create it with owner-readable-only file permissions.
root@papaya:~ # service dnschain start
Starting dnschain.
env: coffee: No such file or directory
/usr/local/etc/rc.d/dnschain: WARNING: failed to start dnschain
root@papaya:~ #
Well, I am not a FreeBSD expert, and this question seems more appropriate for the forums, but as far as that last warning goes, it suggests you either haven't installed coffee-script, or you did but it's not in your $PATH.
This is resolved in the instructions
When I install PowerDNS Recursor in FreeBSD using
pkg install powerdns-recursor
, I see the following:So I make the change in rc.conf and recursor.conf and
shutdown -r now
and magically recursor is alive and well. How can I make this happen withnamecoind
anddnschain
? Incidentally, when manually started withnamecoind &
anddnschain &
, the whole system does work on FreeBSD. Any tips from FreeBSD gurus much appreciated.I guess what I'm asking is do you haz teh codez?