✨ systemd service
This commit is contained in:
parent
f10c7df262
commit
fedb81c485
3 changed files with 21 additions and 1 deletions
|
@ -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
|
1
PKGBUILD
1
PKGBUILD
|
@ -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
11
sheepd.service
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue