Skip to content

Commit

Permalink
Initial import of user-session-units.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahkok committed Jun 22, 2012
0 parents commit 810b277
Show file tree
Hide file tree
Showing 14 changed files with 128 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

autoreconf --install
21 changes: 21 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([user-session-units], [1], [auke-jan.h.kok@intel.com])
AM_INIT_AUTOMAKE([])
AC_CONFIG_FILES([Makefile])

# Checks for programs.
PKG_CHECK_MODULES([SYSTEMD], [systemd])


# Checks for libraries.

# Checks for header files.

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.

AC_OUTPUT
21 changes: 21 additions & 0 deletions units/system/user-session@.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# 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=User Manager for %I
After=systemd-user-sessions.service

[Service]
User=%I
PAMName=login
ControlGroup=%R/user/%I/shared cpu:/
ControlGroupModify=yes
Type=notify
ExecStart=-/usr/lib/systemd/systemd --user
Environment=DISPLAY=:0
Environment=XDG_RUNTIME_DIR=/run/user/%I
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%I/dbus/user_bus_socket
9 changes: 9 additions & 0 deletions units/user/dbus.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

[Unit]
Description=D-Bus System Message Bus
Requires=dbus.socket

[Service]
ExecStart=/usr/bin/dbus-daemon --session --address=systemd: --nofork --systemd-activation
ExecReload=/usr/bin/dbus-send --print-reply --session --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig

5 changes: 5 additions & 0 deletions units/user/dbus.socket
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Unit]
Description=D-Bus System Message Bus Socket

[Socket]
ListenStream=%t/dbus/user_bus_socket
6 changes: 6 additions & 0 deletions units/user/default.target
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

[Unit]
Description=The Englightenment Desktop Environment built on EFL
Wants=xorg.target
Requires=dbus.socket

6 changes: 6 additions & 0 deletions units/user/e17.target
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

[Unit]
Description=The Englightenment Desktop Environment built on EFL
Wants=xorg.target
Requires=dbus.socket

9 changes: 9 additions & 0 deletions units/user/enlightenment.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

[Unit]
Description=The enlightenment Window Manager
After=xorg.target
Requires=dbus.socket

[Service]
ExecStart=/usr/bin/enlightenment_start

11 changes: 11 additions & 0 deletions units/user/xbmc.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

[Unit]
Description=XBMC
After=xorg.target dbus.socket

[Service]
Environment=PATH=/bin:/usr/bin:/sbin:/usr/sbin
ExecStart=/usr/bin/xbmc-standalone

[Install]
WantedBy=xbmc.target
5 changes: 5 additions & 0 deletions units/user/xbmc.target
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

[Unit]
Description=XBMC
Wants=xorg.target dbus.socket

9 changes: 9 additions & 0 deletions units/user/xfce4-session.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

[Unit]
Description=Xfce4 Session Manager
After=xorg.target
After=xfconfd.service

[Service]
ExecStart=/usr/bin/xfce4-session

5 changes: 5 additions & 0 deletions units/user/xfce4.target
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

[Unit]
Description=The Xfce 4.x Desktop Environment
Wants=xorg.target dbus.socket

9 changes: 9 additions & 0 deletions units/user/xfconfd.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

[Unit]
Description=Xfce Configuration Daemon
After=dbus.socket

[Service]
Type=dbus
BusName=org.xfce.Xfconf
ExecStart=/usr/lib/xfce4/xfconf/xfconfd
9 changes: 9 additions & 0 deletions units/user/xfwm4.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

[Unit]
Description=Xfce Window Manager Daemon
After=xorg.target

[Service]
Restart=always
RestartSec=1
ExecStart=/usr/bin/xfwm4

0 comments on commit 810b277

Please sign in to comment.