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
7d7cd42e
Commit
7d7cd42e
authored
4 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
serv-list_startup: temp. fix for non systemd systems
parent
d36752df
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
serv-list_startup
bin/serv-list_startup
+10
-6
No files found.
bin/serv-list_startup
View file @
7d7cd42e
...
...
@@ -19,6 +19,8 @@
serv_list_startup
()
{
load_helper serv-list_all
load_helper serv-status
case
$SERVICETYPE
in
# service-chkconfig|service-upstart)
# # service --status-all for Ubuntu/Fedora
...
...
@@ -27,16 +29,18 @@ serv_list_startup()
# service-initd|service-update)
# sudocmd ls -1 /etc/init.d/* | sed -e "s|/etc/init.d/||g" | grep -v README
# ;;
# systemd)
# sudocmd systemctl list-unit-files
# ;;
*
)
load_helper serv-list_all
load_helper serv-status
systemd
)
#sudocmd systemctl list-unit-files
# TODO: native command? implement --short for list (only names)
for
i
in
$(
serv_list_all |
cut
-f
1
-d
" "
|
grep
"
\.
service$"
)
;
do
is_service_autostart
>
/dev/null
$i
&&
echo
$i
done
;;
*
)
for
i
in
$(
serv_list_all |
cut
-f
1
-d
" "
)
;
do
is_service_autostart
>
/dev/null
$i
&&
echo
$i
done
;;
esac
}
This diff is collapsed.
Click to expand it.
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