diff options
Diffstat (limited to 'test/exec-workingdirectory.service')
-rw-r--r-- | test/exec-workingdirectory.service | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/exec-workingdirectory.service b/test/exec-workingdirectory.service new file mode 100644 index 0000000000..10855d682a --- /dev/null +++ b/test/exec-workingdirectory.service @@ -0,0 +1,7 @@ +[Unit] +Description=Test for WorkingDirectory + +[Service] +ExecStart=/bin/sh -c 'echo $PWD; exit $(test $PWD = "/tmp/test-exec_workingdirectory")' +Type=oneshot +WorkingDirectory=/tmp/test-exec_workingdirectory |