systemd files for packaging
This commit is contained in:
parent
245a35fd09
commit
2262700184
|
@ -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 <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"
|
|
@ -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
|
Loading…
Reference in New Issue