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
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
Anton Palgunov
mkimage-profiles
Commits
52460e8b
Commit
52460e8b
authored
Oct 10, 2022
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
services: add defaults for SYSTEMD and SYSTEMD_USER services
parent
43e2e15f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
3 deletions
+30
-3
config.mk
features.in/services/config.mk
+4
-0
10-services
features.in/services/install2/image-scripts.d/10-services
+12
-1
10-services
features.in/services/rootfs/image-scripts.d/10-services
+14
-2
No files found.
features.in/services/config.mk
View file @
52460e8b
...
...
@@ -4,8 +4,12 @@ use/services: sub/rootfs
@$(call xport,DEFAULT_SERVICES_DISABLE)
@$(call xport,SERVICES_ENABLE)
@$(call xport,SERVICES_DISABLE)
@$(call xport,DEFAULT_SYSTEMD_SERVICES_ENABLE)
@$(call xport,DEFAULT_SYSTEMD_SERVICES_DISABLE)
@$(call xport,SYSTEMD_SERVICES_ENABLE)
@$(call xport,SYSTEMD_SERVICES_DISABLE)
@$(call xport,DEFAULT_SYSTEMD_USER_SERVICES_ENABLE)
@$(call xport,DEFAULT_SYSTEMD_USER_SERVICES_DISABLE)
@$(call xport,SYSTEMD_USER_SERVICES_ENABLE)
@$(call xport,SYSTEMD_USER_SERVICES_DISABLE)
...
...
features.in/services/install2/image-scripts.d/10-services
View file @
52460e8b
...
...
@@ -44,12 +44,17 @@ for i in $GLOBAL_DEFAULT_SERVICES_DISABLE; do switch $i off; done
for
i
in
$GLOBAL_SERVICES_ENABLE
;
do
switch
$i
on
;
done
for
i
in
$GLOBAL_SERVICES_DISABLE
;
do
switch
$i
off
;
done
# systemd services
# defaults systemd services
for
i
in
$GLOBAL_DEFAULT_SYSTEMD_SERVICES_ENABLE
;
do
switch
$i
on
;
done
for
i
in
$GLOBAL_DEFAULT_SYSTEMD_SERVICES_DISABLE
;
do
switch
$i
off
;
done
# explicitly specified behaviour systemd services
for
i
in
$GLOBAL_SYSTEMD_SERVICES_ENABLE
;
do
switch
$i
on
;
done
for
i
in
$GLOBAL_SYSTEMD_SERVICES_DISABLE
;
do
switch
$i
off
;
done
SERVICES
=
"
$GLOBAL_DEFAULT_SERVICES_ENABLE
$GLOBAL_DEFAULT_SERVICES_DISABLE
"
SERVICES
=
"
$SERVICES
$GLOBAL_SERVICES_ENABLE
$GLOBAL_SERVICES_DISABLE
"
SERVICES
=
"
$SERVICES
$GLOBAL_DEFAULT_SYSTEMD_SERVICES_ENABLE
$GLOBAL_DEFAULT_SYSTEMD_SERVICES_DISABLE
"
SERVICES
=
"
$SERVICES
$GLOBAL_SYSTEMD_SERVICES_ENABLE
$GLOBAL_SYSTEMD_SERVICES_DISABLE
"
SERVICES
=
"
$(
echo
$SERVICES
|
tr
" "
"
\n
"
|
sort
-u
)
"
...
...
@@ -88,9 +93,15 @@ for f in systemd-user-enabled systemd-user-disabled; do
CHECK_FILES
=
"
$CHECK_FILES
$CONFDIR
/
$f
"
done
# defaults logind services
for
i
in
$GLOBAL_DEFAULT_SYSTEMD_USER_SERVICES_ENABLE
;
do
switch
$i
enabled
;
done
for
i
in
$GLOBAL_DEFAULT_SYSTEMD_USER_SERVICES_DISABLE
;
do
switch
$i
disabled
;
done
# explicitly specified behaviour logind services
for
i
in
$GLOBAL_SYSTEMD_USER_SERVICES_ENABLE
;
do
switch
$i
enabled
;
done
for
i
in
$GLOBAL_SYSTEMD_USER_SERVICES_DISABLE
;
do
switch
$i
disabled
;
done
SERVICES
=
"
$GLOBAL_DEFAULT_SYSTEMD_USER_SERVICES_ENABLE
$GLOBAL_DEFAULT_SYSTEMD_USER_SERVICES_DISABLE
"
SERVICES
=
"
$GLOBAL_SYSTEMD_USER_SERVICES_ENABLE
$GLOBAL_SYSTEMD_USER_SERVICES_DISABLE
"
SERVICES
=
"
$(
echo
"
$SERVICES
"
|
tr
' '
'\n'
|
sort
-u
)
"
...
...
features.in/services/rootfs/image-scripts.d/10-services
View file @
52460e8b
...
...
@@ -33,13 +33,25 @@ for i in $GLOBAL_DEFAULT_SERVICES_DISABLE; do switch $i off; done
for
i
in
$GLOBAL_SERVICES_ENABLE
;
do
switch
$i
on
;
done
for
i
in
$GLOBAL_SERVICES_DISABLE
;
do
switch
$i
off
;
done
# systemd services
#
#
systemd services
CHKCONFIG
=
# defaults
for
i
in
$GLOBAL_DEFAULT_SYSTEMD_SERVICES_ENABLE
;
do
switch
$i
on
;
done
for
i
in
$GLOBAL_DEFAULT_SYSTEMD_SERVICES_DISABLE
;
do
switch
$i
off
;
done
# explicitly specified behaviour
for
i
in
$GLOBAL_SYSTEMD_SERVICES_ENABLE
;
do
switch
$i
on
;
done
for
i
in
$GLOBAL_SYSTEMD_SERVICES_DISABLE
;
do
switch
$i
off
;
done
# systemd-logind services
#
#
systemd-logind services
SYSTEMD_USER
=
'--user --global'
# defaults
for
i
in
$GLOBAL_DEFAULT_SYSTEMD_USER_SERVICES_ENABLE
;
do
switch
$i
on
;
done
for
i
in
$GLOBAL_DEFAULT_SYSTEMD_USER_SERVICES_DISABLE
;
do
switch
$i
off
;
done
# explicitly specified behaviour
for
i
in
$GLOBAL_SYSTEMD_USER_SERVICES_ENABLE
;
do
switch
$i
on
;
done
for
i
in
$GLOBAL_SYSTEMD_USER_SERVICES_DISABLE
;
do
switch
$i
off
;
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