В Sat, 23 Aug 2014 16:47:53 +0400 Ivan Shapovalov <intelfx...@gmail.com> пишет:
> diff --git a/units/systemd-res...@.service.in > b/units/systemd-res...@.service.in > new file mode 100644 > index 0000000..f760f16 > --- /dev/null > +++ b/units/systemd-res...@.service.in > @@ -0,0 +1,23 @@ > +# 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=Resume from hibernation using device %f > +Documentation=man:systemd-resume@.service(8) > +DefaultDependencies=no > +Conflicts=shutdown.target > +BindsTo=%i.device > +Wants=local-fs-pre.target > +After=%i.device systemd-udevd.service > +Before=local-fs-pre.target systemd-remount-fs.service > systemd-fsck-root.service usr.mount shutdown.target > +ConditionPathIsReadWrite=|!/ > +ConditionPathExists=|/etc/initrd-release > + > +[Service] > +Type=oneshot > +RemainAfterExit=yes Actually that's interesting. As it stands now, it will be impossible to get information whether resume actually happened from service status. It will always reflect the very first invocation, when no resume image was still present. To this extent using RemainAfterExit is probably misleading here. There is no persistent information that's worth keeping. > +ExecStart=@rootlibexecdir@/systemd-resume %f _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel