From 2262700184f153354b492f2031f261b7d82f89a0 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 11 Oct 2024 17:39:11 -0500 Subject: [PATCH] systemd files for packaging --- build | 5 +++++ control | 12 ++++++++++++ virtigod.service | 13 +++++++++++++ 3 files changed, 30 insertions(+) create mode 100755 build create mode 100644 control create mode 100644 virtigod.service 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