Change user/group dash->dashcore

This commit is contained in:
UdjinM6 2016-08-18 02:32:12 +03:00
parent a5328a12b5
commit b8696d9e26
5 changed files with 12 additions and 12 deletions

View File

@ -4,8 +4,8 @@ start on runlevel [2345]
stop on starting rc RUNLEVEL=[016]
env BITCOIND_BIN="/usr/bin/dashd"
env BITCOIND_USER="dash"
env BITCOIND_GROUP="dash"
env BITCOIND_USER="dashcore"
env BITCOIND_GROUP="dashcore"
env BITCOIND_PIDDIR="/var/run/dashd"
# upstart can't handle variables constructed with other variables
env BITCOIND_PIDFILE="/var/run/dashd/dashd.pid"

View File

@ -12,8 +12,8 @@ BITCOIND_CONFIGFILE=${BITCOIND_CONFIGFILE:-/etc/dash/dash.conf}
BITCOIND_PIDDIR=${BITCOIND_PIDDIR:-/var/run/dashd}
BITCOIND_PIDFILE=${BITCOIND_PIDFILE:-${BITCOIND_PIDDIR}/dashd.pid}
BITCOIND_DATADIR=${BITCOIND_DATADIR:-${BITCOIND_DEFAULT_DATADIR}}
BITCOIND_USER=${BITCOIND_USER:-${BITCOIN_USER:-dash}}
BITCOIND_GROUP=${BITCOIND_GROUP:-dash}
BITCOIND_USER=${BITCOIND_USER:-${BITCOIN_USER:-dashcore}}
BITCOIND_GROUP=${BITCOIND_GROUP:-dashcore}
BITCOIND_BIN=${BITCOIND_BIN:-/usr/bin/dashd}
BITCOIND_NICE=${BITCOIND_NICE:-${NICELEVEL:-0}}
BITCOIND_OPTS="${BITCOIND_OPTS:-${BITCOIN_OPTS}}"

View File

@ -13,8 +13,8 @@
#BITCOIND_DATADIR="/var/lib/dashd"
# User and group to own dashd process
#BITCOIND_USER="dash"
#BITCOIND_GROUP="dash"
#BITCOIND_USER="dashcore"
#BITCOIND_GROUP="dashcore"
# Path to dashd executable
#BITCOIND_BIN="/usr/bin/dashd"

View File

@ -3,8 +3,8 @@ Description=Dash's distributed currency daemon
After=network.target
[Service]
User=dash
Group=dash
User=dashcore
Group=dashcore
Type=forking
PIDFile=/var/lib/dashd/dashd.pid

View File

@ -13,7 +13,7 @@ can be found in the contrib/init folder.
1. Service User
---------------------------------
All three Linux startup configurations assume the existence of a "dash" user
All three Linux startup configurations assume the existence of a "dashcore" user
and group. They must be created before attempting to use these scripts.
The OS X configuration assumes dashd will be set up for the current user.
@ -60,9 +60,9 @@ PID file: `/var/run/dashd/dashd.pid` (OpenRC and Upstart) or `/var/li
Lock file: `/var/lock/subsys/dashd` (CentOS)
The configuration file, PID directory (if applicable) and data directory
should all be owned by the dash user and group. It is advised for security
should all be owned by the dashcore user and group. It is advised for security
reasons to make the configuration file and data directory only readable by the
dash user and group. Access to dash-cli and other dashd rpc clients
dashcore user and group. Access to dash-cli and other dashd rpc clients
can then be controlled by group membership.
3b) Mac OS X
@ -116,7 +116,7 @@ This Launch Agent will cause dashd to start whenever the user logs in.
NOTE: This approach is intended for those wanting to run dashd as the current user.
You will need to modify org.dash.dashd.plist if you intend to use it as a
Launch Daemon with a dedicated dash user.
Launch Daemon with a dedicated dashcore user.
5. Auto-respawn
-----------------------------------