*Add systemd service to package
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Derrick Hammer 2022-09-28 20:49:41 -04:00
parent 8f4211be41
commit d6f7a9555f
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
4 changed files with 25 additions and 0 deletions

View File

@ -14,5 +14,11 @@ license: "MIT"
contents:
- src: ./dist/index
dst: /usr/bin/lumeweb-relay
- src: ./systemd.service
dst: /etc/systemd/system/lumeweb-relay.service
type: config
depends:
- lumeweb-relay-plugin-core
scripts:
postinstall: ./pkg/scripts/postinstall.sh
preremove: ./pkg/scripts/preremove.sh

View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
systemctl enable lumeweb-relay.service

3
pkg/scripts/preremove.sh Normal file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
systemctl disable lumeweb-relay.service

13
systemd.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=Lume Web Relay
After=network.target
Wants=network-online.target
[Service]
Restart=always
Type=simple
ExecStart=/usr/bin/lumeweb-relay
Environment=
[Install]
WantedBy=multi-user.target