From 451b7ab0b0763e13f8215ca68fa69b63e31b54c8 Mon Sep 17 00:00:00 2001 From: jahway603 Date: Sun, 19 Sep 2021 18:39:45 -0400 Subject: [PATCH 1/2] added systemd script for sysadmin --- README.md | 7 ++++++- doc/hushd-systemd.md | 26 ++++++++++++++++++++++++++ doc/hushd.service | 9 +++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 doc/hushd-systemd.md create mode 100644 doc/hushd.service diff --git a/README.md b/README.md index 8476fbdcd..31e5cbb61 100644 --- a/README.md +++ b/README.md @@ -44,11 +44,16 @@ If you have an older wallet, then refer to [OLD_WALLETS.md](OLD_WALLETS.md). ### Official Explorer -The link for the Official Hush explorer is: explorer.hush.is +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 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 Please feel free to join us on Telegram for official support: diff --git a/doc/hushd-systemd.md b/doc/hushd-systemd.md new file mode 100644 index 000000000..0c63be3d2 --- /dev/null +++ b/doc/hushd-systemd.md @@ -0,0 +1,26 @@ +# Systemd script for the Hush daemon + +## Set it up + +First set it up as follows: +* Copy hushd.service to the /usr/lib/systemd/user directory (on Arch Linux, but I believe it's the same for the others too) + +## 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. diff --git a/doc/hushd.service b/doc/hushd.service new file mode 100644 index 000000000..d93d4ede3 --- /dev/null +++ b/doc/hushd.service @@ -0,0 +1,9 @@ +[Unit] +Description=Hush daemon +After=network.target + +[Service] +ExecStart=/usr/bin/hushd + +[Install] +WantedBy=default.target From 70dcfad54341d2d4dc27af10f23373cd603646ac Mon Sep 17 00:00:00 2001 From: jahway603 Date: Sun, 19 Sep 2021 22:31:31 -0400 Subject: [PATCH 2/2] systemd script doc minor update --- doc/hushd-systemd.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/hushd-systemd.md b/doc/hushd-systemd.md index 0c63be3d2..c63def8f5 100644 --- a/doc/hushd-systemd.md +++ b/doc/hushd-systemd.md @@ -3,7 +3,7 @@ ## Set it up First set it up as follows: -* Copy hushd.service to the /usr/lib/systemd/user directory (on Arch Linux, but I believe it's the same for the others too) +* Copy hushd.service to the systemd user directory, which is /usr/lib/systemd/user directory ## Basic Usage @@ -23,4 +23,8 @@ Use the following: ## Troubleshooting -Don't run it with sudo or root, or it won't work with the wallet. +* 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)