Make systemctl disable more robust
This commit is contained in:
parent
31ab3ddef2
commit
bcf1ba2ce1
|
@ -5,8 +5,6 @@ source lib/functions.sh
|
||||||
|
|
||||||
echo "Stopping systemd services and removing bridgehead ..."
|
echo "Stopping systemd services and removing bridgehead ..."
|
||||||
|
|
||||||
systemctl disable --now bridgehead@${project}.service
|
systemctl disable --now bridgehead@${project}.service bridgehead-update@${project}.timer bridgehead-update@${project}.service
|
||||||
systemctl disable --now bridgehead-update@${project}.timer
|
|
||||||
systemctl disable --now bridgehead-update@${project}.service
|
|
||||||
|
|
||||||
rm -v /etc/systemd/system/{bridgehead\@.service,bridgehead-update\@.timer,bridgehead-update\@.service}
|
rm -v /etc/systemd/system/{bridgehead\@.service,bridgehead-update\@.timer,bridgehead-update\@.service}
|
||||||
|
|
Loading…
Reference in New Issue