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
Vladislav
eepm
Commits
daa1cebe
Commit
daa1cebe
authored
Apr 06, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
serv: use is_command instead of direct which
parent
5ec242e3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
serv
bin/serv
+1
-1
serv-test
bin/serv-test
+2
-2
No files found.
bin/serv
View file @
daa1cebe
...
...
@@ -99,7 +99,7 @@ is_active_systemd && CMD="systemd"
SERVICETYPE
=
$CMD
ANYSERVICE
=
$(
which anyservice 2>/dev/null
)
ANYSERVICE
=
$(
print_command_path anyservice
)
}
...
...
bin/serv-test
View file @
daa1cebe
...
...
@@ -33,9 +33,9 @@ serv_test()
docmd sshd
-t
;;
httpd2|httpd|apache|apache2
)
if
which httpd2
>
/dev/null 2>/dev/null
;
then
if
is_command httpd2
;
then
docmd httpd2
-t
elif
which apache2
>
/dev/null 2>/dev/null
;
then
elif
is_command apache2
;
then
docmd apache2
-t
fi
;;
...
...
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