mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 13:11:31 +00:00
os: build bootable images
This commit is contained in:
13
resources/openrc/kratad
Normal file
13
resources/openrc/kratad
Normal file
@ -0,0 +1,13 @@
|
||||
#!/sbin/openrc-run
|
||||
description="Krata Control Daemon"
|
||||
command="/usr/libexec/kratad"
|
||||
supervisor="supervise-daemon"
|
||||
output_log="/var/log/kratad.log"
|
||||
error_log="/var/log/kratad.err"
|
||||
|
||||
depend() {
|
||||
use xenconsoled
|
||||
use xenstored
|
||||
}
|
||||
|
||||
export RUST_LOG=info
|
12
resources/openrc/kratanet
Normal file
12
resources/openrc/kratanet
Normal file
@ -0,0 +1,12 @@
|
||||
#!/sbin/openrc-run
|
||||
description="Krata Networking Daemon"
|
||||
command="/usr/libexec/kratanet"
|
||||
supervisor="supervise-daemon"
|
||||
output_log="/var/log/kratanet.log"
|
||||
error_log="/var/log/kratanet.err"
|
||||
|
||||
depend() {
|
||||
use xenstored
|
||||
}
|
||||
|
||||
export RUST_LOG=info
|
@ -4,7 +4,6 @@ Description=Krata Control Daemon
|
||||
[Service]
|
||||
Restart=on-failure
|
||||
Type=simple
|
||||
ExecStartPre=/bin/mkdir -p /var/lib/krata
|
||||
ExecStart=/usr/libexec/kratad -l unix:///var/lib/krata/daemon.socket
|
||||
Environment=RUST_LOG=info
|
||||
User=root
|
||||
|
Reference in New Issue
Block a user