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
Nurlan
eepm
Commits
85d9648b
Commit
85d9648b
authored
Jan 12, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
serv: fix help
parent
3368cc81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
serv
bin/serv
+23
-23
No files found.
bin/serv
View file @
85d9648b
...
...
@@ -164,10 +164,6 @@ check_command()
status
)
# HELPCMD: show service status
serv_cmd
=
status
;;
usage
)
# HELPCMD: print out usage of the service
serv_cmd
=
usage
withoutservicename
=
1
;;
restart
)
# HELPCMD: restart service
serv_cmd
=
restart
;;
...
...
@@ -177,12 +173,27 @@ check_command()
start
)
# HELPCMD: start service
serv_cmd
=
start
;;
try-restart|condrestart
)
# HELPCMD: Restart service if running
serv_cmd
=
try_restart
;;
stop
)
# HELPCMD: stop service
serv_cmd
=
stop
;;
on|enable
)
# HELPCMD: add service to run on startup and start it now
serv_cmd
=
enable
;;
off|disable
)
# HELPCMD: remove service to run on startup and stop it now
serv_cmd
=
disable
;;
log|journal
)
# HELPCMD: print log for the service (-f - follow, -r - reverse order)
serv_cmd
=
log
;;
cat
)
# HELPCMD: print out service file for the service
serv_cmd
=
cat
;;
edit
)
# HELPCMD: edit service file overload (use --full to edit full file)
serv_cmd
=
edit
;;
test
|
-t
)
# HELPCMD: test a config file of the service
serv_cmd
=
test
;;
list
)
# HELPCMD: list running services
serv_cmd
=
list
withoutservicename
=
1
...
...
@@ -199,27 +210,16 @@ check_command()
serv_cmd
=
list_failed
withoutservicename
=
1
;;
on|enable
)
# HELPCMD: add service to run on startup and start it now
serv_cmd
=
enable
;;
off|disable
)
# HELPCMD: remove service to run on startup and stop it now
serv_cmd
=
disable
;;
print
)
# HELPCMD: print some info
serv_cmd
=
print
withoutservicename
=
1
;;
log|journal
)
# HELPCMD: print log for the service (-f - follow, -r - reverse order)
serv_cmd
=
log
;;
cat
)
# HELPCMD: print out service file for the service
serv_cmd
=
cat
;;
edit
)
serv_cmd
=
edit
# HELPCMD: edit service file overload (use --full to edit full file)
try-restart|condrestart
)
# HELPCMD: Restart service if running
serv_cmd
=
try_restart
;;
test
|
-t
)
serv_cmd
=
test
# HELPCMD: test a config file of the service
usage
)
# HELPCMD: print out usage of the service
serv_cmd
=
usage
withoutservicename
=
1
;;
*
)
return
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