diff options
Diffstat (limited to 'units/user')
-rw-r--r-- | units/user/.gitignore | 1 | ||||
l--------- | units/user/Makefile | 1 | ||||
-rw-r--r-- | units/user/default.target | 10 | ||||
-rw-r--r-- | units/user/exit.target | 17 | ||||
-rw-r--r-- | units/user/systemd-exit.service.in | 17 |
5 files changed, 46 insertions, 0 deletions
diff --git a/units/user/.gitignore b/units/user/.gitignore new file mode 100644 index 0000000000..41a74f5461 --- /dev/null +++ b/units/user/.gitignore @@ -0,0 +1 @@ +/systemd-exit.service diff --git a/units/user/Makefile b/units/user/Makefile new file mode 120000 index 0000000000..50be21181f --- /dev/null +++ b/units/user/Makefile @@ -0,0 +1 @@ +../../src/Makefile
\ No newline at end of file diff --git a/units/user/default.target b/units/user/default.target new file mode 100644 index 0000000000..56cf4dcb9c --- /dev/null +++ b/units/user/default.target @@ -0,0 +1,10 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +[Unit] +Description=Default +Documentation=man:systemd.special(7) diff --git a/units/user/exit.target b/units/user/exit.target new file mode 100644 index 0000000000..b0ad24c488 --- /dev/null +++ b/units/user/exit.target @@ -0,0 +1,17 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +[Unit] +Description=Exit the Session +Documentation=man:systemd.special(7) +DefaultDependencies=no +Requires=systemd-exit.service +After=systemd-exit.service +AllowIsolate=yes + +[Install] +Alias=ctrl-alt-del.target diff --git a/units/user/systemd-exit.service.in b/units/user/systemd-exit.service.in new file mode 100644 index 0000000000..987fab8120 --- /dev/null +++ b/units/user/systemd-exit.service.in @@ -0,0 +1,17 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +[Unit] +Description=Exit the Session +Documentation=man:systemd.special(7) +DefaultDependencies=no +Requires=shutdown.target +After=shutdown.target + +[Service] +Type=oneshot +ExecStart=@KILL@ -s 58 $MANAGERPID |