chiark / gitweb /
tests: add test-execute
[elogind.git] / test / exec-user.service
diff --git a/test/exec-user.service b/test/exec-user.service
new file mode 100644 (file)
index 0000000..2ca08eb
--- /dev/null
@@ -0,0 +1,6 @@
+[Unit]
+Description=Test for User
+
+[Service]
+ExecStart=/bin/sh -c 'exit $(test "$USER" = nobody)'
+User=nobody