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
21dcfa69
Commit
21dcfa69
authored
Apr 06, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
serv: use service type detection from epm print info --service-manager
parent
daa1cebe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
40 deletions
+6
-40
serv
bin/serv
+6
-40
No files found.
bin/serv
View file @
21dcfa69
...
...
@@ -51,53 +51,19 @@ set_service_type()
set_distro_info
set_target_pkg_env
# TODO: see Running in distro_info, check is_aсtive_systemd
case
$DISTRNAME
in
ALTLinux|ALTServer
)
case
"
$DISTRCONTROL
"
in
sysvinit
)
CMD
=
"service-chkconfig"
;;
Ubuntu|Debian|Mint|AstraLinux
*
)
CMD
=
"s
ervice-update
"
systemd
)
CMD
=
"s
ystemd
"
;;
Mandriva|ROSA
)
CMD
=
"service-chkconfig"
;;
# FreeBSD)
# CMD="pkg_add"
# ;;
# Gentoo)
# CMD="eselect"
# ;;
# ArchLinux)
# CMD="pacman"
# ;;
Fedora|LinuxXP|ASPLinux|CentOS|RHEL|Scientific|GosLinux|Amzn
)
CMD
=
"service-chkconfig"
;;
VoidLinux
)
CMD
=
"runit"
;;
Slackware
)
CMD
=
"service-initd"
;;
SUSE|SLED|SLES
)
CMD
=
"service-chkconfig"
;;
# Windows)
# CMD="chocolatey"
# ;;
# *)
# fatal "Have no suitable DISTRNAME $DISTRNAME yet"
# ;;
esac
# Note: force systemd using if active
is_active_systemd
&&
CMD
=
"systemd"
# override system control detection result
[
-n
"
$FORCESERVICE
"
]
&&
CMD
=
$FORCESERVICE
[
-n
"
$FORCESERVICE
"
]
&&
CMD
=
"
$FORCESERVICE
"
SERVICETYPE
=
$CMD
SERVICETYPE
=
"
$CMD
"
ANYSERVICE
=
$(
print_command_path anyservice
)
...
...
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