@@ -10,14 +10,14 @@ can be found in the contrib/init folder.
10
10
contrib/init/bitcoind.conf: Upstart service configuration file
11
11
contrib/init/bitcoind.init: CentOS compatible SysV style init script
12
12
13
- 1 . Service User
13
+ Service User
14
14
---------------------------------
15
15
16
16
All three Linux startup configurations assume the existence of a "bitcoin" user
17
17
and group. They must be created before attempting to use these scripts.
18
18
The OS X configuration assumes bitcoind will be set up for the current user.
19
19
20
- 2 . Configuration
20
+ Configuration
21
21
---------------------------------
22
22
23
23
At a bare minimum, bitcoind requires that the rpcpassword setting be set
@@ -46,10 +46,10 @@ relative to the data directory. `wallet` *only* supports relative paths.
46
46
For an example configuration file that describes the configuration settings,
47
47
see ` contrib/debian/examples/bitcoin.conf ` .
48
48
49
- 3 . Paths
49
+ Paths
50
50
---------------------------------
51
51
52
- 3a) Linux
52
+ ### Linux
53
53
54
54
All three configurations assume several paths that might need to be adjusted.
55
55
@@ -65,17 +65,17 @@ reasons to make the configuration file and data directory only readable by the
65
65
bitcoin user and group. Access to bitcoin-cli and other bitcoind rpc clients
66
66
can then be controlled by group membership.
67
67
68
- 3b) Mac OS X
68
+ ### Mac OS X
69
69
70
70
Binary: ` /usr/local/bin/bitcoind `
71
71
Configuration file: ` ~/Library/Application Support/Bitcoin/bitcoin.conf `
72
- Data directory: ` ~/Library/Application Support/Bitcoin `
73
- Lock file: ` ~/Library/Application Support/Bitcoin/.lock `
72
+ Data directory: ` ~/Library/Application Support/Bitcoin `
73
+ Lock file: ` ~/Library/Application Support/Bitcoin/.lock `
74
74
75
- 4 . Installing Service Configuration
75
+ Installing Service Configuration
76
76
-----------------------------------
77
77
78
- 4a) systemd
78
+ ### systemd
79
79
80
80
Installing this .service file consists of just copying it to
81
81
/usr/lib/systemd/system directory, followed by the command
@@ -84,30 +84,30 @@ Installing this .service file consists of just copying it to
84
84
To test, run ` systemctl start bitcoind ` and to enable for system startup run
85
85
` systemctl enable bitcoind `
86
86
87
- 4b) OpenRC
87
+ ### OpenRC
88
88
89
89
Rename bitcoind.openrc to bitcoind and drop it in /etc/init.d. Double
90
90
check ownership and permissions and make it executable. Test it with
91
91
` /etc/init.d/bitcoind start ` and configure it to run on startup with
92
92
` rc-update add bitcoind `
93
93
94
- 4c) Upstart (for Debian/Ubuntu based distributions)
94
+ ### Upstart (for Debian/Ubuntu based distributions)
95
95
96
96
Drop bitcoind.conf in /etc/init. Test by running ` service bitcoind start `
97
97
it will automatically start on reboot.
98
98
99
99
NOTE: This script is incompatible with CentOS 5 and Amazon Linux 2014 as they
100
100
use old versions of Upstart and do not supply the start-stop-daemon utility.
101
101
102
- 4d) CentOS
102
+ ### CentOS
103
103
104
104
Copy bitcoind.init to /etc/init.d/bitcoind. Test by running ` service bitcoind start ` .
105
105
106
106
Using this script, you can adjust the path and flags to the bitcoind program by
107
107
setting the BITCOIND and FLAGS environment variables in the file
108
108
/etc/sysconfig/bitcoind. You can also use the DAEMONOPTS environment variable here.
109
109
110
- 4e) Mac OS X
110
+ ### Mac OS X
111
111
112
112
Copy org.bitcoin.bitcoind.plist into ~ /Library/LaunchAgents. Load the launch agent by
113
113
running ` launchctl load ~/Library/LaunchAgents/org.bitcoin.bitcoind.plist ` .
@@ -118,7 +118,7 @@ NOTE: This approach is intended for those wanting to run bitcoind as the current
118
118
You will need to modify org.bitcoin.bitcoind.plist if you intend to use it as a
119
119
Launch Daemon with a dedicated bitcoin user.
120
120
121
- 5 . Auto-respawn
121
+ Auto-respawn
122
122
-----------------------------------
123
123
124
124
Auto respawning is currently only configured for Upstart and systemd.
0 commit comments