Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit f66bc8d

Browse files
committed
Added systemd units for faasd #2582
1 parent e8932ac commit f66bc8d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tools.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -2125,6 +2125,16 @@ tools:
21252125
x86_64: https://github.com/openfaas/faasd/releases/download/${version}/faasd
21262126
aarch64: https://github.com/openfaas/faasd/releases/download/${version}/faasd-${alt_arch}
21272127
type: executable
2128+
- url: https://github.com/openfaas/faasd/raw/${version}/hack/faasd.service
2129+
type: file
2130+
target: ${prefix}/etc/systemd/system/faasd.service
2131+
- url: https://github.com/openfaas/faasd/raw/${version}/hack/faasd-provider.service
2132+
type: file
2133+
target: ${prefix}/etc/systemd/system/faasd-provider.service
2134+
post_install: |
2135+
echo "Patch systemd units"
2136+
sed -i "s|ExecStart=/usr/local/bin/faasd|ExecStart=${relative_target}/bin/faasd|" "${prefix}/etc/systemd/system/faasd.service"
2137+
sed -i "s|ExecStart=/usr/local/bin/faasd|ExecStart=${relative_target}/bin/faasd|" "${prefix}/etc/systemd/system/faasd-provider.service"
21282138
21292139
- name: firecracker
21302140
version: 1.1.1

0 commit comments

Comments
 (0)