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
22829662
Commit
22829662
authored
Jan 17, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add initial openrc support
parent
35e2e84b
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
22 additions
and
1 deletion
+22
-1
serv
bin/serv
+1
-1
serv-disable
bin/serv-disable
+3
-0
serv-enable
bin/serv-enable
+3
-0
serv-list
bin/serv-list
+3
-0
serv-list_all
bin/serv-list_all
+3
-0
serv-restart
bin/serv-restart
+3
-0
serv-start
bin/serv-start
+3
-0
serv-stop
bin/serv-stop
+3
-0
No files found.
bin/serv
View file @
22829662
...
...
@@ -71,7 +71,7 @@ case $DISTRNAME in
# CMD="pkg_add"
# ;;
# Gentoo)
# CMD="e
merge
"
# CMD="e
select
"
# ;;
# ArchLinux)
# CMD="pacman"
...
...
bin/serv-disable
View file @
22829662
...
...
@@ -42,6 +42,9 @@ serv_disable()
systemd
)
sudocmd systemctl disable
$1
;;
openrc
)
sudocmd rc-update del
$1
default
;;
runit
)
sudocmd
rm
-fv
/var/service/
$SERVICE
;;
...
...
bin/serv-enable
View file @
22829662
...
...
@@ -46,6 +46,9 @@ __serv_enable()
systemd
)
sudocmd systemctl
enable
$1
;;
openrc
)
sudocmd rc-update add
$1
default
;;
runit
)
epm assure
$SERVICE
[
-r
"/etc/sv/
$SERVICE
"
]
||
fatal
"Can't find /etc/sv/
$SERVICE
"
...
...
bin/serv-list
View file @
22829662
...
...
@@ -33,6 +33,9 @@ serv_list()
systemd
)
sudocmd systemctl list-units
$@
;;
openrc
)
sudocmd rc-status
;;
*
)
# hack to improve list speed
[
"
$UID
"
=
0
]
||
{
sudocmd
$PROGDIR
/serv
--quiet
list
;
return
;
}
...
...
bin/serv-list_all
View file @
22829662
...
...
@@ -36,6 +36,9 @@ serv_list_all()
systemd
)
sudocmd systemctl list-unit-files
$@
;;
openrc
)
sudocmd rc-service
-l
;;
*
)
fatal
"Have no suitable command for
$SERVICETYPE
"
;;
...
...
bin/serv-restart
View file @
22829662
...
...
@@ -42,6 +42,9 @@ serv_restart()
runit
)
sudocmd sv restart
"
$SERVICE
"
;;
openrc
)
sudocmd rc-service restart
"
$SERVICE
"
;;
*
)
fatal
"Have no suitable command for
$SERVICETYPE
"
;;
...
...
bin/serv-start
View file @
22829662
...
...
@@ -40,6 +40,9 @@ serv_start()
runit
)
sudocmd sv up
"
$SERVICE
"
;;
openrc
)
sudocmd rc-service start
"
$SERVICE
"
;;
*
)
fatal
"Have no suitable command for
$SERVICETYPE
"
;;
...
...
bin/serv-stop
View file @
22829662
...
...
@@ -40,6 +40,9 @@ serv_stop()
runit
)
sudocmd sv down
"
$SERVICE
"
;;
openrc
)
sudocmd rc-service stop
"
$SERVICE
"
;;
*
)
fatal
"Have no suitable command for
$SERVICETYPE
"
;;
...
...
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