@titandeveos/uxwallet-service v0.0.23-beta
UXWallet Service
Clone the repository and install NPM modules
git clone git@github.com:CryptoMechanics/wallet-service
cd wallet-service
npm install
How to Run the UXWallet service
The UXWallet service can be started via an executable or used as a module in a node JS script. An example node JS script is below:
const { runService, stopService } = require('uxwallet-service')
process.on("SIGINT", stopService);
(async () => { await runService({dataDir: './ux-data-directory'}) })();
Running the UXWallet service via SystemD
SystemD is the preferred method for managing background services in a modern Unix environment. The UXWallet source code comes with a SystemD installation script in the service/bin/
path. To install UXWallet with SystemD, customize the uxwallet.service
file with your favorite text editor then copy the file to /etc/systemd/system/uxwallet.service
. You will need to edit the following:
- edit the USER to the user you wish to run the UXWallet service
- edit the GROUP to the group permission you wish to run the UXWallet service
$ service/bin/uxwallet.service
[Service]
User=CHANGE_USER
Group=CHANGE_GROUP
After copying the file to the directory listed above execute systemctl daemon-reload
to load the new service. In order to activate and run the service, execute systemctl start uxwallet
. You can check the status with systemctl status uxwallet
. Alternatively, you can run the server-status.sh
script.
Running the UXWallet service via LaunchD
LaunchD is the preferred method for managing background services on OSX. The UXWallet source code comes with a LaunchD installation script in the service/bin
path. To install UXWallet with LaunchD, customize the uxwallet.launchd
file with your favorite text editor then copy the file to ~/Library/LaunchDaemons/com.eostitan.uxwallet.plist
.
After copying the file to the directory listed above, execute launchctl load -w ~/Library/LaunchAgents/com.eostitan.uxwallet.plist
. You can check to see if the service is running by executing launchctl list | grep uxwallet
. You will see some result only if the service is running. Alternatively, you can run the server-status.sh
script.
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago