systemd files for packaging

This commit is contained in:
Jeff Carr 2024-10-11 17:39:11 -05:00
parent 245a35fd09
commit 2262700184
3 changed files with 30 additions and 0 deletions

5
build Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash -x
# this is the systemd control file
mkdir -p files/lib/systemd/system/
cp virtigod.service files/lib/systemd/system/

12
control Normal file
View File

@ -0,0 +1,12 @@
Source: virtigod
Build-Depends: golang
Package: virtigod
Maintainer: Jeff Carr <jcarr@wit.com>
Architecture: amd64
Depends: caddy
URL: https://go.wit.com/lib/daemons/virtigod
Description: the virtigo daemon
relatively dumb daemon that just talks to
libvirt and qemu on the hypervisor
virtigo uses this to control dom0
name should be "virtigo-d" not "virti-god"

13
virtigod.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=virtigod
[Service]
User=root
Type=simple
ExecStart=/usr/bin/virtigod
ExecStop=killall virtigod
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target