Merge pull request 'added systemd script for sysadmin' (#71) from jahway603/hush3:dev into dev
Reviewed-on: https://git.hush.is/hush/hush3/pulls/71
This commit is contained in:
@@ -44,11 +44,16 @@ If you have an older wallet, then refer to [OLD_WALLETS.md](OLD_WALLETS.md).
|
|||||||
|
|
||||||
### Official Explorer
|
### Official Explorer
|
||||||
|
|
||||||
The link for the Official Hush explorer is: <a href="https://explorer.hush.is">explorer.hush.is</a>
|
The link for the Official Hush explorer is: [explorer.hush.is](https://explorer.hush.is)
|
||||||
|
|
||||||
We are looking for alternate explorers to be run on Tor, i2P and other TLDs, if you are interested
|
We are looking for alternate explorers to be run on Tor, i2P and other TLDs, if you are interested
|
||||||
please join Telegram and ask questions.
|
please join Telegram and ask questions.
|
||||||
|
|
||||||
|
### For system admins
|
||||||
|
|
||||||
|
There is a new systemd user service script so you can easily start/stop/restart your hushd service on your server.
|
||||||
|
[Try it out today](doc/hushd-systemd.md) and the systemd script is located in the doc directory of the source tree.
|
||||||
|
|
||||||
## Support and Socials
|
## Support and Socials
|
||||||
|
|
||||||
Please feel free to join us on Telegram for official support:
|
Please feel free to join us on Telegram for official support:
|
||||||
|
|||||||
30
doc/hushd-systemd.md
Normal file
30
doc/hushd-systemd.md
Normal file
@@ -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)
|
||||||
9
doc/hushd.service
Normal file
9
doc/hushd.service
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Hush daemon
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/bin/hushd
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
Reference in New Issue
Block a user