[systemd-commits] Makefile.am units/.gitignore units/systemd-user-sessions.service.in
Lennart Poettering
lennart at kemper.freedesktop.org
Thu Oct 7 14:48:56 PDT 2010
Makefile.am | 7 +++++--
units/.gitignore | 1 +
units/systemd-user-sessions.service.in | 16 ++++++++++++++++
3 files changed, 22 insertions(+), 2 deletions(-)
New commits:
commit 447be1550523114f96c7f9eacb9d6a1ff6ca4197
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 7 23:48:48 2010 +0200
systemd-user-sessions: install .service file and enable by default
diff --git a/Makefile.am b/Makefile.am
index 7d0ca9a..13c6ffa 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -228,6 +228,7 @@ nodist_systemunit_DATA = \
units/systemd-readahead-replay.service \
units/systemd-readahead-done.service \
units/systemd-tmpfiles.service \
+ units/systemd-user-sessions.service \
units/syslog.target
dist_sessionunit_DATA = \
@@ -259,6 +260,7 @@ EXTRA_DIST = \
units/systemd-readahead-replay.service.in \
units/systemd-readahead-done.service.in \
units/systemd-tmpfiles.service.in \
+ units/systemd-user-sessions.service.in \
units/syslog.target.in \
units/session/exit.service.in \
systemd.pc.in
@@ -1072,8 +1074,9 @@ install-data-hook:
$(LN_S) graphical.target default.target && \
$(LN_S) reboot.target ctrl-alt-del.target )
( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
- rm -f getty.target && \
- $(LN_S) ../getty.target getty.target )
+ rm -f getty.target systemd-user-sessions.service && \
+ $(LN_S) ../getty.target getty.target && \
+ $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service )
( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
rm -f getty at tty1.service getty at tty2.service getty at tty3.service getty at tty4.service getty at tty5.service getty at tty6.service && \
$(LN_S) $(systemunitdir)/getty at .service getty at tty1.service && \
diff --git a/units/.gitignore b/units/.gitignore
index f5a42dd..00a40d4 100644
--- a/units/.gitignore
+++ b/units/.gitignore
@@ -1,3 +1,4 @@
+systemd-user-sessions.service
systemd-readahead-done.service
systemd-tmpfiles.service
systemd-readahead-collect.service
diff --git a/units/systemd-user-sessions.service.in b/units/systemd-user-sessions.service.in
new file mode 100644
index 0000000..a93d586
--- /dev/null
+++ b/units/systemd-user-sessions.service.in
@@ -0,0 +1,16 @@
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=Permit User Sessions
+After=local-fs.target remote-fs.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=@rootlibexecdir@/systemd-user-sessions start
+ExecStop=@rootlibexecdir@/systemd-user-sessions stop
More information about the systemd-commits
mailing list