From acffbe6cd27849c32a1bb85b65765b832e7bf9e1 Mon Sep 17 00:00:00 2001 From: Dmitrij Pastian Date: Tue, 20 Oct 2020 19:09:47 +0200 Subject: [PATCH] -updated INSTALL.md -fixes in install-polylith-systemd-units.sh --- docs/INSTALL.md | 20 +++++++++++++++++--- install-polylith-systemd-units.sh | 4 +--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/docs/INSTALL.md b/docs/INSTALL.md index 76fb828b0..29e0799a0 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -316,9 +316,23 @@ Example: * path: /home/dendrite/server/ * selection: all -In order to start all installed services the wrapper "polyDendrite.service" can be used: +How to start a specific service (e.g clientapi): ```bash -# systemctl start polyDendrite.service +# systemctl start dendrite@clientapi ``` -Monitor with \ No newline at end of file +...or all services using a wildcard: +```bash +# systemctl start dendrite@* +``` + +Monitor with journalctl: + +```bash +# journalctl -fu dendrite@clientapi +``` +or + +```bash +# journalctl -fu dendrite@* +``` diff --git a/install-polylith-systemd-units.sh b/install-polylith-systemd-units.sh index 0ee4eb03f..35431b717 100644 --- a/install-polylith-systemd-units.sh +++ b/install-polylith-systemd-units.sh @@ -22,8 +22,6 @@ print_param_options() done } -declare PARAM_TEMPLATED="yes" - #Array with all servers SERVERS=( "clientapi" \ @@ -54,7 +52,7 @@ function generateServiceUnit() fi cat <<-EOF > /etc/systemd/system/dendrite@.service [Unit] - Description= Dendrite PolyLit Multi - %I + Description= Dendrite PolyLith Multi - %I PartOf=polyDendrite.service After=network.target