chore: service manager helper functions new name

This commit is contained in:
hesam-init 2024-03-26 20:31:15 +03:30
parent b52a7b15fe
commit 0fd8e4b83e

View file

@ -31,7 +31,7 @@ alias svstatus="sudo sv status"
alias svon="sudo sv up" alias svon="sudo sv up"
alias svoff="sudo sv down" alias svoff="sudo sv down"
svadd() { svenable() {
if [ -z "$1" ]; then if [ -z "$1" ]; then
echo "Error: Please provide the path of the service to add" echo "Error: Please provide the path of the service to add"
return 1 return 1
@ -39,7 +39,7 @@ svadd() {
sudo ln -s $1 /var/service sudo ln -s $1 /var/service
} }
svremove() { svdisable() {
if [ -z "$1" ]; then if [ -z "$1" ]; then
echo "Error: Please provide the name of the service to remove" echo "Error: Please provide the name of the service to remove"
return 1 return 1