diff --git a/build b/build new file mode 100755 index 0000000..fc9df55 --- /dev/null +++ b/build @@ -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/ diff --git a/control b/control new file mode 100644 index 0000000..a778702 --- /dev/null +++ b/control @@ -0,0 +1,12 @@ +Source: virtigod +Build-Depends: golang +Package: virtigod +Maintainer: Jeff Carr +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" diff --git a/virtigod.service b/virtigod.service new file mode 100644 index 0000000..5a013c7 --- /dev/null +++ b/virtigod.service @@ -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