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
etersoft
eepm
Commits
e0f6e354
Commit
e0f6e354
authored
Aug 22, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
serv: more verbose on
parent
bcb434ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
serv-disable
bin/serv-disable
+1
-1
serv-enable
bin/serv-enable
+3
-2
No files found.
bin/serv-disable
View file @
e0f6e354
...
...
@@ -26,7 +26,7 @@ serv_disable()
local
SERVICE
=
"
$1
"
is_service_running
$1
&&
{
serv_stop
$1
||
return
;
}
is_service_autostart
$1
||
{
ech
o
"Service
$1
already disabled for startup"
&&
return
;
}
is_service_autostart
$1
||
{
inf
o
"Service
$1
already disabled for startup"
&&
return
;
}
case
$SERVICETYPE
in
service-chkconfig|service-upstart
)
...
...
bin/serv-enable
View file @
e0f6e354
...
...
@@ -25,7 +25,7 @@ __serv_enable()
{
local
SERVICE
=
"
$1
"
is_service_autostart
$1
&&
ech
o
"Service
$1
already enabled for startup"
&&
return
is_service_autostart
$1
&&
inf
o
"Service
$1
already enabled for startup"
&&
return
case
$SERVICETYPE
in
service-chkconfig
)
...
...
@@ -57,5 +57,6 @@ serv_enable()
{
__serv_enable
"
$1
"
||
return
# start if need
is_service_running
$1
||
serv_start
$1
||
return
is_service_running
$1
&&
info
"Service
$1
is already running"
&&
return
serv_start
$1
}
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