*Add systemd service to package
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
8f4211be41
commit
d6f7a9555f
|
@ -14,5 +14,11 @@ license: "MIT"
|
||||||
contents:
|
contents:
|
||||||
- src: ./dist/index
|
- src: ./dist/index
|
||||||
dst: /usr/bin/lumeweb-relay
|
dst: /usr/bin/lumeweb-relay
|
||||||
|
- src: ./systemd.service
|
||||||
|
dst: /etc/systemd/system/lumeweb-relay.service
|
||||||
|
type: config
|
||||||
depends:
|
depends:
|
||||||
- lumeweb-relay-plugin-core
|
- lumeweb-relay-plugin-core
|
||||||
|
scripts:
|
||||||
|
postinstall: ./pkg/scripts/postinstall.sh
|
||||||
|
preremove: ./pkg/scripts/preremove.sh
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
systemctl enable lumeweb-relay.service
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
systemctl disable lumeweb-relay.service
|
|
@ -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
|
Loading…
Reference in New Issue