summaryrefslogtreecommitdiff
path: root/test/meson.build
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-03-25 20:50:15 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-04-16 16:09:46 +0200
commit5008da1ec1cf2cf8c15b702c4052e3a49583095d (patch)
tree68b4ae04a7f7a751ae6c3e4f1e85a83906bb2db5 /test/meson.build
parentf79cd1a9b2111a228bbb5b6de6fb836ad515c5c8 (diff)
downloadsystemd-5008da1ec1cf2cf8c15b702c4052e3a49583095d.tar.gz
systemd: do not require absolute paths in ExecStart
Absolute paths make everything simple and quick, but sometimes this requirement can be annoying. A good example is calling 'test', which will be located in /usr/bin/ or /bin depending on the distro. The need the provide the full path makes it harder a portable unit file in such cases. This patch uses a fixed search path (DEFAULT_PATH which was already used as the default value of $PATH), and if a non-absolute file name is found, it is immediately resolved to a full path using this search path when the unit is loaded. After that, everything behaves as if an absolute path was specified. In particular, the executable must exist when the unit is loaded.
Diffstat (limited to 'test/meson.build')
-rw-r--r--test/meson.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/meson.build b/test/meson.build
index 809bd44a93..fd4ac11a39 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -45,6 +45,7 @@ test_data_files = '''
sockets.target
son.service
sysinit.target
+ test-execute/exec-basic.service
test-execute/exec-ambientcapabilities-merge-nfsnobody.service
test-execute/exec-ambientcapabilities-merge-nobody.service
test-execute/exec-ambientcapabilities-merge.service