mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-12-23 20:09:44 +00:00
Update tabs/utils/service-control.sh
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
This commit is contained in:
parent
d608d06fc9
commit
110f331ec4
|
@ -55,7 +55,12 @@ add_service() {
|
|||
while [ -z "$SERVICE_NAME" ]; do
|
||||
echo "Enter the name of the new service (e.g., my_service):"
|
||||
read -r SERVICE_NAME
|
||||
done
|
||||
|
||||
if $ESCALATION_TOOL systemctl list-units --type=service --all --no-legend | grep -q "$SERVICE_NAME.service"; then
|
||||
echo "Service already exists!"
|
||||
SERVICE_NAME=""
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Enter the description of the service:"
|
||||
read -r SERVICE_DESCRIPTION
|
||||
|
|
Loading…
Reference in New Issue
Block a user