Commit 447be155 authored by Lennart Poettering's avatar Lennart Poettering
Browse files

systemd-user-sessions: install .service file and enable by default

parent 4a8a5b29
......@@ -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@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
$(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
......
systemd-user-sessions.service
systemd-readahead-done.service
systemd-tmpfiles.service
systemd-readahead-collect.service
......
# 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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment