From 59a7d1ab1ed5577747f33a6407a65b785e23a895 Mon Sep 17 00:00:00 2001 From: Josh Proehl Date: Thu, 30 Mar 2023 20:47:57 -0500 Subject: [PATCH] Document systemctl, delete systemd unit on uninstall --- Makefile | 1 + README.md | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e5af598..b3610d3 100644 --- a/Makefile +++ b/Makefile @@ -110,6 +110,7 @@ uninstall: ifeq ($(TARGET), opendv) userdel opendv || true rm -r /var/log/opendv || true + rm $(DESTDIR)/etc/systemd/system/ircddbgatewayd.service endif rm -r $(DESTDIR)$(DATADIR) || true rm $(DESTDIR)$(BINDIR)/aprstransmitd || true diff --git a/README.md b/README.md index 14b034f..b030271 100644 --- a/README.md +++ b/README.md @@ -44,8 +44,12 @@ Now you should edit the configuration in the file /etc/ircddbgateway to match yo When building in TARGET=opendv mode, the necessary systemd unit files will be installed. To ensure ircddbgatewayd starts at system boot, and then immediately start it, use: ```shell -sudo systemctl enable ircddbgatewayd.service #enable service +sudo systemctl enable ircddbgatewayd.service sudo service ircddbgatewayd start ``` -If you wish to remove the manually installed files you may use `sudo make uninstall` +If you wish to remove the manually installed files you may use `sudo make uninstall`. +Note that this will remove the systemd unit, but will not first stop or disable the service. To do so, first use: +```shell +sudo systemctl disable --now ircddbgateway.service +```