Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
Ximper Linux
mkimage-profiles
Commits
efd06839
Commit
efd06839
authored
Feb 01, 2013
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
live, slinux: use systemctl --no-reload
Thanks boyarsh@ for m-p-d implementation and sem@ for the hint.
parent
7603f072
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
03-services
features.in/live/live/image-scripts.d/03-services
+5
-2
50-services
features.in/slinux/live/image-scripts.d/50-services
+2
-2
No files found.
features.in/live/live/image-scripts.d/03-services
View file @
efd06839
...
@@ -12,8 +12,11 @@ switch() {
...
@@ -12,8 +12,11 @@ switch() {
esac
esac
{
{
[
!
-x
/bin/systemctl
]
||
/bin/systemctl
$sc
$1
.service
[
!
-x
/bin/systemctl
]
||
[
!
-x
/sbin/chkconfig
]
||
/sbin/chkconfig
$1
$cc
/bin/systemctl
--no-reload
$sc
$1
.service
[
!
-x
/sbin/chkconfig
]
||
/sbin/chkconfig
$1
$cc
}
2>/dev/null
}
2>/dev/null
}
}
...
...
features.in/slinux/live/image-scripts.d/50-services
View file @
efd06839
...
@@ -18,12 +18,12 @@ sshd
...
@@ -18,12 +18,12 @@ sshd
"
"
for
i
in
$ENABLE
;
do
for
i
in
$ENABLE
;
do
[
-x
/bin/systemctl
]
&&
/bin/systemctl
enable
${
i
}
.service
[
-x
/bin/systemctl
]
&&
/bin/systemctl
--no-reload
enable
${
i
}
.service
[
-x
/sbin/chkconfig
]
&&
/sbin/chkconfig
$i
on
[
-x
/sbin/chkconfig
]
&&
/sbin/chkconfig
$i
on
done
done
for
i
in
$DISABLE
;
do
for
i
in
$DISABLE
;
do
[
-x
/bin/systemctl
]
&&
/bin/systemctl disable
${
i
}
.service
[
-x
/bin/systemctl
]
&&
/bin/systemctl
--no-reload
disable
${
i
}
.service
[
-x
/sbin/chkconfig
]
&&
/sbin/chkconfig
$i
off
[
-x
/sbin/chkconfig
]
&&
/sbin/chkconfig
$i
off
done
done
:
:
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