18 lines
320 B
Bash
Executable File
18 lines
320 B
Bash
Executable File
#!/bin/sh -efu
|
|
|
|
. @RPMCONFIGDIR@/functions
|
|
. @RPMCONFIGDIR@/find-package
|
|
|
|
SystemdServiceReq()
|
|
{
|
|
local bin
|
|
|
|
grep -h '^[[:space:]]*Exec[^=]*=[^-]' "$1" |
|
|
sed -n 's|^[[:space:]]*Exec[^=]*=[^/]*\(/[^[:space:]]\+\).*|\1|p' |
|
|
while read bin; do
|
|
FindPackage "$1" "$bin"
|
|
done
|
|
}
|
|
|
|
ArgvFileAction SystemdServiceReq "$@"
|