Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
f2a7f2a0
Commit
f2a7f2a0
authored
Aug 13, 2015
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #577 from CameronNemo/systemd-instanced
Add instanced systemd service
parents
f20b99d3
de2b7e65
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
3 deletions
+26
-3
Makefile.am
config/init/systemd/Makefile.am
+5
-3
lxc@.service.in
config/init/systemd/lxc@.service.in
+20
-0
configure.ac
configure.ac
+1
-0
No files found.
config/init/systemd/Makefile.am
View file @
f2a7f2a0
...
@@ -2,17 +2,19 @@ EXTRA_DIST = \
...
@@ -2,17 +2,19 @@ EXTRA_DIST = \
lxc-devsetup
\
lxc-devsetup
\
lxc-apparmor-load
\
lxc-apparmor-load
\
lxc.service.in
\
lxc.service.in
\
lxc@.service.in
\
lxc-net.service.in
lxc-net.service.in
if
INIT_SCRIPT_SYSTEMD
if
INIT_SCRIPT_SYSTEMD
BUILT_SOURCES
=
lxc.service lxc-net.service
BUILT_SOURCES
=
lxc.service lxc
@.service lxc
-net.service
install-systemd
:
lxc.service lxc-net.service lxc-devsetup lxc-apparmor-load
install-systemd
:
lxc.service lxc
@.service lxc
-net.service lxc-devsetup lxc-apparmor-load
$(MKDIR_P)
$(DESTDIR)$(SYSTEMD_UNIT_DIR)
$(MKDIR_P)
$(DESTDIR)$(SYSTEMD_UNIT_DIR)
$(INSTALL_DATA)
lxc.service lxc-net.service
$(DESTDIR)$(SYSTEMD_UNIT_DIR)
/
$(INSTALL_DATA)
lxc.service lxc
@.service lxc
-net.service
$(DESTDIR)$(SYSTEMD_UNIT_DIR)
/
uninstall-systemd
:
uninstall-systemd
:
rm
-f
$(DESTDIR)$(SYSTEMD_UNIT_DIR)
/lxc.service
rm
-f
$(DESTDIR)$(SYSTEMD_UNIT_DIR)
/lxc.service
rm
-f
$(DESTDIR)$(SYSTEMD_UNIT_DIR)
/lxc@.service
rm
-f
$(DESTDIR)$(SYSTEMD_UNIT_DIR)
/lxc-net.service
rm
-f
$(DESTDIR)$(SYSTEMD_UNIT_DIR)
/lxc-net.service
rmdir
$(DESTDIR)$(SYSTEMD_UNIT_DIR)
||
:
rmdir
$(DESTDIR)$(SYSTEMD_UNIT_DIR)
||
:
...
...
config/init/systemd/lxc@.service.in
0 → 100644
View file @
f2a7f2a0
[Unit]
Description=LXC Container: %i
# This pulls in apparmor, dev-setup, lxc-net
After=lxc.service
Wants=lxc.service
[Service]
Type=simple
KillMode=mixed
KillSignal=SIGPWR
TimeoutStopSec=120s
ExecStart=@BINDIR@/lxc-start -n %i
# Environment=BOOTUP=serial
# Environment=CONSOLETYPE=serial
Delegate=yes
StandardOutput=syslog
StandardError=syslog
[Install]
WantedBy=multi-user.target
configure.ac
View file @
f2a7f2a0
...
@@ -625,6 +625,7 @@ AC_CONFIG_FILES([
...
@@ -625,6 +625,7 @@ AC_CONFIG_FILES([
config/init/common/lxc-net
config/init/common/lxc-net
config/init/systemd/Makefile
config/init/systemd/Makefile
config/init/systemd/lxc.service
config/init/systemd/lxc.service
config/init/systemd/lxc@.service
config/init/systemd/lxc-net.service
config/init/systemd/lxc-net.service
config/init/sysvinit/Makefile
config/init/sysvinit/Makefile
config/init/sysvinit/lxc-containers
config/init/sysvinit/lxc-containers
...
...
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