Improved comments

This commit is contained in:
fatalerrors
2021-09-06 14:40:35 +02:00
parent 9f584fcd65
commit 66daa05175
5 changed files with 47 additions and 3 deletions

View File

@@ -7,6 +7,9 @@
# https://opensource.org/licenses/BSD-3-Clause
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
# Common code controling services scripts
# Syntax exec_serv svcname command
exec_serv()
{
@@ -25,22 +28,31 @@ exec_serv()
$lineexec
}
# ------------------------------------------------------------------------------
# Start one or more service
svc_start()
{
for svc in $@; do
exec_serv $svc start
exec_serv $svc start
done
}
export -f svc_start
# ------------------------------------------------------------------------------
# Restart one or more services
svc_restart()
{
for svc in $@; do
exec_serv $svc restart
exec_serv $svc restart
done
}
export -f svc_restart
# ------------------------------------------------------------------------------
# Stop one or more services
svc_stop()
{
for svc in $@; do