mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
Change user/group dash->dashcore
This commit is contained in:
parent
a5328a12b5
commit
b8696d9e26
@ -4,8 +4,8 @@ start on runlevel [2345]
|
|||||||
stop on starting rc RUNLEVEL=[016]
|
stop on starting rc RUNLEVEL=[016]
|
||||||
|
|
||||||
env BITCOIND_BIN="/usr/bin/dashd"
|
env BITCOIND_BIN="/usr/bin/dashd"
|
||||||
env BITCOIND_USER="dash"
|
env BITCOIND_USER="dashcore"
|
||||||
env BITCOIND_GROUP="dash"
|
env BITCOIND_GROUP="dashcore"
|
||||||
env BITCOIND_PIDDIR="/var/run/dashd"
|
env BITCOIND_PIDDIR="/var/run/dashd"
|
||||||
# upstart can't handle variables constructed with other variables
|
# upstart can't handle variables constructed with other variables
|
||||||
env BITCOIND_PIDFILE="/var/run/dashd/dashd.pid"
|
env BITCOIND_PIDFILE="/var/run/dashd/dashd.pid"
|
||||||
|
@ -12,8 +12,8 @@ BITCOIND_CONFIGFILE=${BITCOIND_CONFIGFILE:-/etc/dash/dash.conf}
|
|||||||
BITCOIND_PIDDIR=${BITCOIND_PIDDIR:-/var/run/dashd}
|
BITCOIND_PIDDIR=${BITCOIND_PIDDIR:-/var/run/dashd}
|
||||||
BITCOIND_PIDFILE=${BITCOIND_PIDFILE:-${BITCOIND_PIDDIR}/dashd.pid}
|
BITCOIND_PIDFILE=${BITCOIND_PIDFILE:-${BITCOIND_PIDDIR}/dashd.pid}
|
||||||
BITCOIND_DATADIR=${BITCOIND_DATADIR:-${BITCOIND_DEFAULT_DATADIR}}
|
BITCOIND_DATADIR=${BITCOIND_DATADIR:-${BITCOIND_DEFAULT_DATADIR}}
|
||||||
BITCOIND_USER=${BITCOIND_USER:-${BITCOIN_USER:-dash}}
|
BITCOIND_USER=${BITCOIND_USER:-${BITCOIN_USER:-dashcore}}
|
||||||
BITCOIND_GROUP=${BITCOIND_GROUP:-dash}
|
BITCOIND_GROUP=${BITCOIND_GROUP:-dashcore}
|
||||||
BITCOIND_BIN=${BITCOIND_BIN:-/usr/bin/dashd}
|
BITCOIND_BIN=${BITCOIND_BIN:-/usr/bin/dashd}
|
||||||
BITCOIND_NICE=${BITCOIND_NICE:-${NICELEVEL:-0}}
|
BITCOIND_NICE=${BITCOIND_NICE:-${NICELEVEL:-0}}
|
||||||
BITCOIND_OPTS="${BITCOIND_OPTS:-${BITCOIN_OPTS}}"
|
BITCOIND_OPTS="${BITCOIND_OPTS:-${BITCOIN_OPTS}}"
|
||||||
|
@ -13,8 +13,8 @@
|
|||||||
#BITCOIND_DATADIR="/var/lib/dashd"
|
#BITCOIND_DATADIR="/var/lib/dashd"
|
||||||
|
|
||||||
# User and group to own dashd process
|
# User and group to own dashd process
|
||||||
#BITCOIND_USER="dash"
|
#BITCOIND_USER="dashcore"
|
||||||
#BITCOIND_GROUP="dash"
|
#BITCOIND_GROUP="dashcore"
|
||||||
|
|
||||||
# Path to dashd executable
|
# Path to dashd executable
|
||||||
#BITCOIND_BIN="/usr/bin/dashd"
|
#BITCOIND_BIN="/usr/bin/dashd"
|
||||||
|
@ -3,8 +3,8 @@ Description=Dash's distributed currency daemon
|
|||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=dash
|
User=dashcore
|
||||||
Group=dash
|
Group=dashcore
|
||||||
|
|
||||||
Type=forking
|
Type=forking
|
||||||
PIDFile=/var/lib/dashd/dashd.pid
|
PIDFile=/var/lib/dashd/dashd.pid
|
||||||
|
@ -13,7 +13,7 @@ can be found in the contrib/init folder.
|
|||||||
1. Service User
|
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.
|
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.
|
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)
|
Lock file: `/var/lock/subsys/dashd` (CentOS)
|
||||||
|
|
||||||
The configuration file, PID directory (if applicable) and data directory
|
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
|
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.
|
can then be controlled by group membership.
|
||||||
|
|
||||||
3b) Mac OS X
|
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.
|
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
|
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
|
5. Auto-respawn
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user