Skip to content

Commit

Permalink
dist: include systemd service for daemon with release packages
Browse files Browse the repository at this point in the history
  • Loading branch information
tinyzimmer committed Nov 5, 2023
1 parent 1df43ea commit 9fe65ad
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ archives:
builds:
- node
- wmctl
files:
- src: contrib/systemd/webmeshd.service
strip_parent: false
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
Expand All @@ -131,6 +134,9 @@ nfpms:
description: Webmesh is a service mesh for the web
homepage: https://webmeshproj.github.io
license: Apache 2.0
contents:
- src: contrib/systemd/webmeshd.service
dst: /usr/lib/systemd/system/webmeshd.service
builds:
- node
- wmctl
Expand All @@ -152,6 +158,9 @@ nfpms:
description: Webmesh is a service mesh for the web
homepage: https://webmeshproj.github.io
license: Apache 2.0
contents:
- src: contrib/systemd/webmeshd.service
dst: /usr/lib/systemd/system/webmeshd.service
builds:
- node
- wmctl
Expand Down
17 changes: 17 additions & 0 deletions contrib/systemd/webmeshd.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[Unit]
Description=Webmesh Daemon
After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/webmesh-node \
--daemon.enabled=true \
--daemon.grpc-web=true \
--daemon.cors.enabled=true \
--daemon.bind=127.0.0.1:58080 \
--daemon.persistence.path=/var/lib/webmeshd
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target

0 comments on commit 9fe65ad

Please sign in to comment.