|
|
|
@ -17,17 +17,17 @@
|
|
|
|
|
ethereum_pidfile="@l_prefix@/var/ethereum/run/ethereum-geth.pid" |
|
|
|
|
ethereum_logfile="@l_prefix@/var/ethereum/log/ethereum-geth.log" |
|
|
|
|
ethereum_signal () { |
|
|
|
|
[ -f $ethereum_pidfile ] && kill -$1 `cat $ethereum_bootnode_pidfile` |
|
|
|
|
[ -f $ethereum_pidfile ] && kill -$1 `cat $ethereum_pidfile` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
%status -u @l_rusr@ -o |
|
|
|
|
ethereum_usable="unknown" |
|
|
|
|
ethereum_active="no" |
|
|
|
|
rcService ethereum enable yes && \ |
|
|
|
|
ethereum_signal 0 && ethereum_bootnode_active="yes" |
|
|
|
|
echo "ethereum_enable=\"$ethereum_bootnode_enable\"" |
|
|
|
|
echo "ethereum_usable=\"$ethereum_bootnode_usable\"" |
|
|
|
|
echo "ethereum_active=\"$ethereum_bootnode_active\"" |
|
|
|
|
ethereum_signal 0 && ethereum_active="yes" |
|
|
|
|
echo "ethereum_enable=\"$ethereum_enable\"" |
|
|
|
|
echo "ethereum_usable=\"$ethereum_usable\"" |
|
|
|
|
echo "ethereum_active=\"$ethereum_active\"" |
|
|
|
|
|
|
|
|
|
%start -u @l_rusr@ |
|
|
|
|
rcService ethereum enable yes || exit 0 |
|
|
|
@ -56,7 +56,7 @@
|
|
|
|
|
%daily -u @l_susr@ |
|
|
|
|
rcService ethereum enable yes || exit 0 |
|
|
|
|
shtool rotate -f \ |
|
|
|
|
-n ${ethereum_log_numfiles} -s ${ethereum_bootnode_log_minsize} -d \ |
|
|
|
|
-n ${ethereum_log_numfiles} -s ${ethereum_log_minsize} -d \ |
|
|
|
|
-z ${ethereum_log_complevel} -m 664 -o @l_rusr@ -g @l_rgrp@ \ |
|
|
|
|
-P "${ethereum_log_prolog}" \ |
|
|
|
|
-E "${ethereum_log_epilog}; rc ethereum restart" \ |
|
|
|
|