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
36dac0e8
Commit
36dac0e8
authored
Feb 02, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
serv: add support for FORCESERVICE
parent
1ced3c17
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
serv
bin/serv
+4
-0
serv-status
bin/serv-status
+2
-0
No files found.
bin/serv
View file @
36dac0e8
...
...
@@ -96,7 +96,11 @@ esac
# Note: force systemd using if active
is_active_systemd
&&
CMD
=
"systemd"
# override system control detection result
[
-n
"
$FORCESERVICE
"
]
&&
CMD
=
$FORCESERVICE
SERVICETYPE
=
$CMD
}
...
...
bin/serv-status
View file @
36dac0e8
...
...
@@ -17,6 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# FIXME: sudo ask password, but we do not print command before
is_service_running
()
{
case
$SERVICETYPE
in
...
...
@@ -36,6 +37,7 @@ is_service_running()
esac
}
# FIXME: sudo ask password, but we do not print command before
is_service_autostart
()
{
case
$SERVICETYPE
in
...
...
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