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
a0e12ec8
Commit
a0e12ec8
authored
Dec 08, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add enable/disable for on/off and make it main files
parent
95b5d707
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
serv
bin/serv
+4
-4
serv-disable
bin/serv-disable
+1
-1
serv-enable
bin/serv-enable
+1
-1
No files found.
bin/serv
View file @
a0e12ec8
...
...
@@ -135,11 +135,11 @@ check_command()
stop
)
# HELPCMD: stop service
serv_cmd
=
stop
;;
on
)
# HELPCMD: add service to run on startup and start it now
serv_cmd
=
on
on
|enable
)
# HELPCMD: add service to run on startup and start it now
serv_cmd
=
enable
;;
off
)
# HELPCMD: remove service to run on startup and stop it now
serv_cmd
=
off
off
|disable
)
# HELPCMD: remove service to run on startup and stop it now
serv_cmd
=
disable
;;
*
)
return
1
...
...
bin/serv-
off
→
bin/serv-
disable
View file @
a0e12ec8
...
...
@@ -22,7 +22,7 @@ load_helper serv-stop
load_helper serv-status
# Enable service by default
serv_
off
()
serv_
disable
()
{
is_service_running
$1
&&
{
serv_stop
$1
||
return
;
}
is_service_autostart
$1
||
{
echo
"Service
$1
already disabled for startup"
&&
return
;
}
...
...
bin/serv-
on
→
bin/serv-
enable
View file @
a0e12ec8
...
...
@@ -22,7 +22,7 @@ load_helper serv-start
load_helper serv-status
# Enable service by default
serv_
on
()
serv_
enable
()
{
is_service_running
$1
||
serv_start
$1
||
return
is_service_autostart
$1
&&
echo
"Service
$1
already enabled for startup"
&&
return
...
...
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