[Unit] Description=Test for PrivateTmp=yes [Service] ExecStart=/bin/sh -c 'exit $(test ! -f /tmp/test-exec_privatetmp)' Type=oneshot PrivateTmp=yes