Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Builder Robot
eepm
Commits
099cecf6
Commit
099cecf6
authored
Jan 15, 2026
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
serv: use named variable instead of $1 in messages
parent
ec0dbb11
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
serv-disable
bin/serv-disable
+1
-1
serv-enable
bin/serv-enable
+1
-1
serv-off
bin/serv-off
+2
-2
serv-on
bin/serv-on
+4
-3
No files found.
bin/serv-disable
View file @
099cecf6
...
...
@@ -25,7 +25,7 @@ serv_disable()
{
local
SERVICE
=
"
$1
"
is_service_autostart
$
1
||
{
info
"Service
$1
already disabled for startup"
&&
return
;
}
is_service_autostart
$
SERVICE
||
{
info
'Service $SERVICE already disabled for startup'
&&
return
;
}
case
$SERVICETYPE
in
service-chkconfig|service-upstart
)
...
...
bin/serv-enable
View file @
099cecf6
...
...
@@ -25,7 +25,7 @@ serv_enable()
{
local
SERVICE
=
"
$1
"
is_service_autostart
$
1
&&
info
"Service
$1
is already enabled for startup"
&&
return
is_service_autostart
$
SERVICE
&&
info
'Service $SERVICE is already enabled for startup'
&&
return
case
$SERVICETYPE
in
service-chkconfig
)
...
...
bin/serv-off
View file @
099cecf6
...
...
@@ -26,7 +26,7 @@ serv_off()
{
local
SERVICE
=
"
$1
"
is_service_running
$
1
&&
{
serv_stop
$1
||
return
;
}
is_service_autostart
$
1
||
{
info
"Service
$1
already disabled for startup"
&&
return
;
}
is_service_running
$
SERVICE
&&
{
serv_stop
$SERVICE
||
return
;
}
is_service_autostart
$
SERVICE
||
{
info
'Service $SERVICE already disabled for startup'
&&
return
;
}
serv_disable
$SERVICE
}
bin/serv-on
View file @
099cecf6
...
...
@@ -23,8 +23,9 @@ load_helper serv-status
serv_on
()
{
serv_enable
"
$1
"
||
return
local
SERVICE
=
"
$1
"
serv_enable
"
$SERVICE
"
||
return
# start if need
is_service_running
$
1
&&
info
"Service
$1
is already running"
&&
return
serv_start
$
1
is_service_running
$
SERVICE
&&
info
'Service $SERVICE is already running'
&&
return
serv_start
$
SERVICE
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment