Duke Leto
3 years ago
3 changed files with 45 additions and 1 deletions
@ -0,0 +1,30 @@ |
|||||
|
# Systemd script for the Hush daemon |
||||
|
|
||||
|
## Set it up |
||||
|
|
||||
|
First set it up as follows: |
||||
|
* Copy hushd.service to the systemd user directory, which is /usr/lib/systemd/user directory |
||||
|
|
||||
|
## Basic Usage |
||||
|
|
||||
|
How to start the script: |
||||
|
`systemctl start --user hushd.service` |
||||
|
|
||||
|
How to stop the script: |
||||
|
`systemctl stop --user hushd.service` |
||||
|
|
||||
|
How to restart the script: |
||||
|
`systemctl stop --user hushd.service` |
||||
|
|
||||
|
## How to watch it as it starts |
||||
|
|
||||
|
Use the following: |
||||
|
`watch systemctl status --user hushd.service` |
||||
|
|
||||
|
## Troubleshooting |
||||
|
|
||||
|
* Don't run it with sudo or root, or it won't work with the wallet. |
||||
|
|
||||
|
### To-do |
||||
|
|
||||
|
* determine best method to get logs when using on Ubuntu server as it is not displayed when watching it or when start/stopping the systemd service (testd on Ubuntu server 20.04 running on VPS) |
@ -0,0 +1,9 @@ |
|||||
|
[Unit] |
||||
|
Description=Hush daemon |
||||
|
After=network.target |
||||
|
|
||||
|
[Service] |
||||
|
ExecStart=/usr/bin/hushd |
||||
|
|
||||
|
[Install] |
||||
|
WantedBy=default.target |
Loading…
Reference in new issue