Add owobot.service
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Elara 2023-12-04 16:33:06 -08:00
parent c7ea59d512
commit 0c6397acfa
2 changed files with 15 additions and 4 deletions

View File

@ -16,7 +16,7 @@ builds:
- riscv64 - riscv64
archives: archives:
- files: - files:
- scripts/completion/* - owobot.service
nfpms: nfpms:
- id: owobot - id: owobot
description: "The coolest bot ever written" description: "The coolest bot ever written"
@ -32,8 +32,8 @@ nfpms:
conflicts: conflicts:
- owobot - owobot
contents: contents:
- src: scripts/completion/bash - src: owobot.service
dst: /usr/share/bash-completion/completions/lure dst: /etc/systemd/system/owobot.service
aurs: aurs:
- name: owobot-bin - name: owobot-bin
homepage: 'https://gitea.elara.ws/owobot/owobot' homepage: 'https://gitea.elara.ws/owobot/owobot'
@ -52,7 +52,7 @@ aurs:
install -Dm755 ./owobot "${pkgdir}/usr/bin/owobot" install -Dm755 ./owobot "${pkgdir}/usr/bin/owobot"
# services # services
# TODO install -Dm644 ./owobot.service "${pkgdir}/etc/systemd/system/owobot.service"
release: release:
gitea: gitea:
owner: owobot owner: owobot

11
owobot.service Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=owobot
After=network-online.target
[Service]
ExecStart=owobot
Restart=always
StandardOutput=journal
[Install]
WantedBy=default.target