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
de2b7e65
Commit
de2b7e65
authored
Jun 30, 2015
by
Cameron Norman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add instanced systemd service
Signed-off-by:
Cameron Norman
<
camerontnorman@gmail.com
>
parent
dc80aa9c
Hide 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 @
de2b7e65
...
@@ -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 @
de2b7e65
[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 @
de2b7e65
...
@@ -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