systemd service
Some checks failed
ci/woodpecker/push/build/1 Pipeline failed
ci/woodpecker/push/build/2 Pipeline failed

This commit is contained in:
JMARyA 2025-05-05 14:58:39 +02:00
parent f10c7df262
commit fedb81c485
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
3 changed files with 21 additions and 1 deletions

View file

@ -1,3 +1,11 @@
matrix:
platform:
- linux/amd64
- linux/arm64
labels:
platform: ${platform}
when: when:
- event: push - event: push
branch: main branch: main
@ -12,4 +20,4 @@ steps:
PACCO_TOKEN: PACCO_TOKEN:
from_secret: pacco_token from_secret: pacco_token
SIGN_KEY: SIGN_KEY:
from_secret: navos_key from_secret: navos_key

View file

@ -29,6 +29,7 @@ build() {
package_sheepd() { package_sheepd() {
pkgdesc="sheep daemon" pkgdesc="sheep daemon"
cd "$srcdir/repo" cd "$srcdir/repo"
install -Dm755 "sheepd.service" "$pkgir/etc/systemd/systemd/sheepd.service"
install -Dm755 "target/release/sheepd" "$pkgdir/usr/bin/sheepd" install -Dm755 "target/release/sheepd" "$pkgdir/usr/bin/sheepd"
} }

11
sheepd.service Normal file
View file

@ -0,0 +1,11 @@
[Unit]
Description=Sheep Daemon
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/sheepd
Restart=on-failure
[Install]
WantedBy=multi-user.target