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.
This commit is contained in:
Bruno F. Fontes 2021-03-26 23:32:49 -03:00
parent b9ddb223e4
commit 3347cb35e6
Signed by: brunofontes
GPG Key ID: EE3447CE80048495

View File

@ -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