summaryrefslogtreecommitdiff
path: root/test/test-execute/exec-passenvironment-absent.service
blob: 7d5e32a4eb35e407ae2fd701d0dabf13896a8897 (plain)
1
2
3
4
5
6
7
[Unit]
Description=Test for PassEnvironment with variables absent from the execution environment

[Service]
ExecStart=/bin/sh -x -c 'test "$${VAR1-unset}" = "unset" && test "$${VAR2-unset}" = "unset" && test "$${VAR3-unset}" = "unset"'
Type=oneshot
PassEnvironment=VAR1 VAR2 VAR3