@@ -13,8 +13,9 @@ can be found in the contrib/init folder.
13
13
1 . Service User
14
14
---------------------------------
15
15
16
- All three startup configurations assume the existence of a "bitcoin" user
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
+ The OS X configuration assumes bitcoind will be set up for the current user.
18
19
19
20
2 . Configuration
20
21
---------------------------------
@@ -48,6 +49,8 @@ see `contrib/debian/examples/bitcoin.conf`.
48
49
3 . Paths
49
50
---------------------------------
50
51
52
+ 3a) Linux
53
+
51
54
All three configurations assume several paths that might need to be adjusted.
52
55
53
56
Binary: ` /usr/bin/bitcoind `
@@ -62,6 +65,13 @@ reasons to make the configuration file and data directory only readable by the
62
65
bitcoin user and group. Access to bitcoin-cli and other bitcoind rpc clients
63
66
can then be controlled by group membership.
64
67
68
+ 3b) Mac OS X
69
+
70
+ Binary: ` /usr/local/bin/bitcoind `
71
+ Configuration file: ` ~/Library/Application Support/Bitcoin/bitcoin.conf `
72
+ Data directory: ` ~/Library/Application Support/Bitcoin `
73
+ Lock file: ` ~/Library/Application Support/Bitcoin/.lock `
74
+
65
75
4 . Installing Service Configuration
66
76
-----------------------------------
67
77
@@ -97,6 +107,17 @@ Using this script, you can adjust the path and flags to the bitcoind program by
97
107
setting the BITCOIND and FLAGS environment variables in the file
98
108
/etc/sysconfig/bitcoind. You can also use the DAEMONOPTS environment variable here.
99
109
110
+ 4e) Mac OS X
111
+
112
+ Copy org.bitcoin.bitcoind.plist into ~ /Library/LaunchAgents. Load the launch agent by
113
+ running ` launchctl load ~/Library/LaunchAgents/org.bitcoin.bitcoind.plist ` .
114
+
115
+ This Launch Agent will cause bitcoind to start whenever the user logs in.
116
+
117
+ NOTE: This approach is intended for those wanting to run bitcoind as the current user.
118
+ You will need to modify org.bitcoin.bitcoind.plist if you intend to use it as a
119
+ Launch Daemon with a dedicated bitcoin user.
120
+
100
121
5 . Auto-respawn
101
122
-----------------------------------
102
123
0 commit comments