linuxShortcuts/Services/installSystemService.sh
Bruno Fontes 3347cb35e6
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.
2021-03-26 23:32:49 -03:00

5 lines
120 B
Bash
Executable File

doas rm /etc/systemd/system/$1
doas cp -f $1 /etc/systemd/system/
doas systemctl daemon-reload
doas systemctl status $1