From 4baf475e354d5390cf0ff649962fed465c1044a3 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 7 Nov 2017 15:56:09 -0700 Subject: [PATCH] adjust logs --- installer/install-for-systemd.sh | 5 ++++- installer/install.sh | 5 ++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/installer/install-for-systemd.sh b/installer/install-for-systemd.sh index 944823d..1aab34f 100644 --- a/installer/install-for-systemd.sh +++ b/installer/install-for-systemd.sh @@ -22,6 +22,7 @@ $sudo_cmd systemctl daemon-reload $sudo_cmd systemctl start "${my_app_name}.service" $sudo_cmd systemctl enable "${my_app_name}.service" +echo "" echo "" echo "Fun systemd commands to remember:" echo " $sudo_cmd systemctl daemon-reload" @@ -29,4 +30,6 @@ echo " $sudo_cmd systemctl restart $my_app_name.service" echo "" echo "$my_app_name started with systemctl, check its status like so:" echo " $sudo_cmd systemctl status $my_app_name" -echo " $sudo_cmd journalctl -xe -u $my_app_name" +echo " $sudo_cmd journalctl -xefu $my_app_name" +echo "" +echo "" diff --git a/installer/install.sh b/installer/install.sh index cb440ed..a2c0f8e 100644 --- a/installer/install.sh +++ b/installer/install.sh @@ -145,8 +145,7 @@ find $my_root/opt/$my_name -type d -exec $sudo_cmd chmod ug+s {} \; echo "" echo "$my_name installation complete!" echo "" -echo "Restart: systemctl restart $my_name" -echo "Logs: journalctl -xefu $my_name" -echo "Config: /etc/$my_name/$my_name.yml" +echo "" +echo "Update the config at: /etc/$my_name/$my_name.yml" echo "" echo "Unistall: rm -rf /srv/$my_name/ /var/$my_name/ /etc/$my_name/ /opt/$my_name/ /var/log/$my_name/ /etc/tmpfiles.d/$my_name.service /etc/systemd/system/$my_name.service /etc/ssl/$my_name"