diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-10-14 00:57:52 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-10-14 00:57:52 +0200 |
commit | 85ed27f699939f75b8422ae67e016bdf9f439da9 (patch) | |
tree | 0262a6075feb2eaeec21e3f5ae408b967dcc51ea /units/session | |
parent | bec9996d6aab890f82fb58a470fe6cf37cbaf40d (diff) |
units: introduce kexec.service, kexec.target and exit.target
Diffstat (limited to 'units/session')
-rw-r--r-- | units/session/exit.service.in | 13 | ||||
-rw-r--r-- | units/session/exit.target | 18 |
2 files changed, 29 insertions, 2 deletions
diff --git a/units/session/exit.service.in b/units/session/exit.service.in index d098d0da50..024fbe172d 100644 --- a/units/session/exit.service.in +++ b/units/session/exit.service.in @@ -1,9 +1,18 @@ +# 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. + +# See systemd.special(7) for details + [Unit] -Description=Exit +Description=Exit the Session DefaultDependencies=no Requires=shutdown.target After=shutdown.target [Service] Type=oneshot -ExecStart=@SYSTEMCTL@ --session daemon-exit +ExecStart=@SYSTEMCTL@ --session --force exit diff --git a/units/session/exit.target b/units/session/exit.target new file mode 100644 index 0000000000..f34844c0d3 --- /dev/null +++ b/units/session/exit.target @@ -0,0 +1,18 @@ +# 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. + +# See systemd.special(7) for details + +[Unit] +Description=Exit the Session +DefaultDependencies=no +Requires=exit.service +After=exit.service +AllowIsolate=yes + +[Install] +Alias=ctrl-alt-del.target |