From 3347cb35e6338034ba9d3dabf30432f02f78c7da Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Fri, 26 Mar 2021 23:32:49 -0300 Subject: [PATCH] feat(systemd): add shortcut to add new service The script removes an old version, copy the new service to the correct folder, run a daemon-reload and get a status about it. --- Services/installSystemService.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 Services/installSystemService.sh diff --git a/Services/installSystemService.sh b/Services/installSystemService.sh new file mode 100755 index 0000000..ed7f43c --- /dev/null +++ b/Services/installSystemService.sh @@ -0,0 +1,4 @@ +doas rm /etc/systemd/system/$1 +doas cp -f $1 /etc/systemd/system/ +doas systemctl daemon-reload +doas systemctl status $1