mirror of
https://github.com/systemd/systemd.git
synced 2024-12-19 15:13:36 +08:00
8c35c10d20
Currently there does not exist a way to specify a path relative to which all binaries executed by Exec should be found. The only way is to specify the absolute path. This change implements the functionality to specify a path relative to which binaries executed by Exec*= can be found. Closes #6308
6 lines
253 B
Desktop File
6 lines
253 B
Desktop File
[Service]
|
|
ExecStart=/bin/sh -x -c 'test "$$VAR1" = "word1 word2" && test "$$VAR2" = word3 && test "$$VAR3" = "\\$$word 5 6" && test "$$PATH" = "/tmp:/bin"'
|
|
Type=oneshot
|
|
ExecSearchPath=/tmp:/bin
|
|
Environment="VAR1=word1 word2" VAR2=word3 "VAR3=$word 5 6"
|