diff options
| author | Jeff Carr <[email protected]> | 2024-10-11 17:39:11 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-11 17:39:11 -0500 |
| commit | 2262700184f153354b492f2031f261b7d82f89a0 (patch) | |
| tree | c25b6d0f9b30036ca84f3f78167c881a3b691d7f | |
| parent | 245a35fd09c36a2985ede9098a275b84ebda7e65 (diff) | |
systemd files for packagingv0.0.1
| -rwxr-xr-x | build | 5 | ||||
| -rw-r--r-- | control | 12 | ||||
| -rw-r--r-- | virtigod.service | 13 |
3 files changed, 30 insertions, 0 deletions
@@ -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/ @@ -0,0 +1,12 @@ +Source: virtigod +Build-Depends: golang +Package: virtigod +Maintainer: Jeff Carr <[email protected]> +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 |
