diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-10-25 21:02:01 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-10-25 21:02:01 +0200 |
commit | 306a7fd82e790b3c00ba5cf806ccd6c0108061b5 (patch) | |
tree | 82eb46a21ab0d40cec30bf764e1af64de980b5ab /units | |
parent | 50f298ec0fbb0ea2d09d3952fc522bc8db8f28e6 (diff) |
units: activate wall agent automatically if something is dropped in /dev/.systemd/ask-password
Diffstat (limited to 'units')
-rw-r--r-- | units/.gitignore | 1 | ||||
-rw-r--r-- | units/systemd-ask-password-wall.path | 13 | ||||
-rw-r--r-- | units/systemd-ask-password-wall.service.in | 13 |
3 files changed, 27 insertions, 0 deletions
diff --git a/units/.gitignore b/units/.gitignore index 2bd507a763..42058c501d 100644 --- a/units/.gitignore +++ b/units/.gitignore @@ -1,3 +1,4 @@ +systemd-ask-password-wall.service quotacheck.service fsck@.service fsck-root.service diff --git a/units/systemd-ask-password-wall.path b/units/systemd-ask-password-wall.path new file mode 100644 index 0000000000..a555d26f19 --- /dev/null +++ b/units/systemd-ask-password-wall.path @@ -0,0 +1,13 @@ +# 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=Forward Password Requests to Wall Directory Watch +After=local-fs.target + +[Path] +DirectoryNotEmpty=/dev/.systemd/ask-password diff --git a/units/systemd-ask-password-wall.service.in b/units/systemd-ask-password-wall.service.in new file mode 100644 index 0000000000..e810fe3097 --- /dev/null +++ b/units/systemd-ask-password-wall.service.in @@ -0,0 +1,13 @@ +# 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=Forward Password Requests to Wall +After=getty.target + +[Service] +ExecStart=@rootbindir@/systemd-tty-ask-password-agent --wall |