summaryrefslogtreecommitdiff
path: root/test/exec-user.service
diff options
context:
space:
mode:
Diffstat (limited to 'test/exec-user.service')
-rw-r--r--test/exec-user.service6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/exec-user.service b/test/exec-user.service
new file mode 100644
index 0000000000..2ca08ebb42
--- /dev/null
+++ b/test/exec-user.service
@@ -0,0 +1,6 @@
+[Unit]
+Description=Test for User
+
+[Service]
+ExecStart=/bin/sh -c 'exit $(test "$USER" = nobody)'
+User=nobody