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
13176b37
Commit
13176b37
authored
Aug 12, 2015
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit packed files
parent
da836481
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
4 deletions
+30
-4
epm.sh
packed/epm.sh
+0
-0
serv.sh
packed/serv.sh
+30
-4
No files found.
packed/epm.sh
View file @
13176b37
This diff is collapsed.
Click to expand it.
packed/serv.sh
View file @
13176b37
...
@@ -304,7 +304,7 @@ assure_exists()
...
@@ -304,7 +304,7 @@ assure_exists()
eget
()
eget
()
{
{
$
PROG
DIR
/tools-eget
"
$@
"
$
SHARE
DIR
/tools-eget
"
$@
"
}
}
get_package_type
()
get_package_type
()
...
@@ -398,7 +398,7 @@ case $DISTRNAME in
...
@@ -398,7 +398,7 @@ case $DISTRNAME in
;;
;;
Fedora|LinuxXP|ASPLinux|CentOS|RHEL|Scientific
)
Fedora|LinuxXP|ASPLinux|CentOS|RHEL|Scientific
)
CMD
=
"yum-rpm"
CMD
=
"yum-rpm"
#which dnf 2>/dev/null >/dev/null
&& CMD=dnf-rpm
which dnf 2>/dev/null
>
/dev/null
&&
test
-d
/var/lib/dnf/yumdb
&&
CMD
=
dnf-rpm
;;
;;
Slackware
)
Slackware
)
CMD
=
"slackpkg"
CMD
=
"slackpkg"
...
@@ -574,6 +574,30 @@ serv_list_startup()
...
@@ -574,6 +574,30 @@ serv_list_startup()
esac
esac
}
}
# File bin/serv-restart:
serv_restart
()
{
local
SERVICE
=
"
$1
"
shift
case
$SERVICETYPE
in
service-chkconfig|service-upstart
)
sudocmd service
$SERVICE
restart
"
$@
"
;;
service-initd|service-update
)
sudocmd
$INITDIR
/
$SERVICE
restart
"
$@
"
;;
systemd
)
sudocmd systemctl restart
$SERVICE
"
$@
"
;;
*
)
fatal
"Have no suitable command for
$SERVICETYPE
"
;;
esac
}
# File bin/serv-start:
# File bin/serv-start:
serv_start
()
serv_start
()
...
@@ -1147,7 +1171,7 @@ $(get_help HELPOPT)
...
@@ -1147,7 +1171,7 @@ $(get_help HELPOPT)
print_version
()
print_version
()
{
{
echo
"Service manager version 1.5.1
0
"
echo
"Service manager version 1.5.1
5
"
echo
"Running on
$(
$DISTRVENDOR
)
"
echo
"Running on
$(
$DISTRVENDOR
)
"
echo
"Copyright (c) Etersoft 2012, 2013"
echo
"Copyright (c) Etersoft 2012, 2013"
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
...
@@ -1182,7 +1206,9 @@ check_command()
...
@@ -1182,7 +1206,9 @@ check_command()
serv_cmd
=
usage
serv_cmd
=
usage
withoutservicename
=
1
withoutservicename
=
1
;;
;;
#restart) # HELPCMD: restart service
restart
)
# HELPCMD: restart service
serv_cmd
=
restart
;;
#reload) # HELPCMD: reload service
#reload) # HELPCMD: reload service
start
)
# HELPCMD: start service
start
)
# HELPCMD: start service
serv_cmd
=
start
serv_cmd
=
start
...
...
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