✨ 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:
|
||||
- event: push
|
||||
branch: main
|
||||
|
|
1
PKGBUILD
1
PKGBUILD
|
@ -29,6 +29,7 @@ build() {
|
|||
package_sheepd() {
|
||||
pkgdesc="sheep daemon"
|
||||
cd "$srcdir/repo"
|
||||
install -Dm755 "sheepd.service" "$pkgir/etc/systemd/systemd/sheepd.service"
|
||||
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