Bug#786443: inhibit while a PID is running

martin f krafft madduck at debian.org
Sat Jan 30 01:41:44 GMT 2016


also sprach Michael Biebl <biebl at debian.org> [2016-01-30 05:54 +1300]:
> Can you be more specific how you envision this to work? Afaics
> this is inherently racy, so I'm not sure if it's a good idea to
> provide such an interface.

Is it racy? Wouldn't it be as simple as monitoring the inode of
/proc/$pid and if the directory disappears or changes inode, then
the PID has terminated? Surely, this can also be done without
procfsā€¦

> Why don't you just run your backup via systemd-inhibit
> <my-backup-script>? I assume you trigger this via cron or
> a similar mechanism, so adding systemd-inhibit to start the
> command seems like the correct way.

To do this, I'd have to tell my backup server about all the machines
that use systemd, i.e. another place to track this information that
is inherently implicit in the systems.

-- 
 .''`.   martin f. krafft <madduck at d.o> @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
"picture yourself in a boat on a river
 with tangerine trees and marmelade skies..."
                                                      -- the beatles
-------------- next part --------------
A non-text attachment was scrubbed...
Name: digital_signature_gpg.asc
Type: application/pgp-signature
Size: 1107 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20160130/88b066ba/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list