ayaports/user/qubes-vm-core/qubes-core.openrc

31 lines
682 B
Text
Raw Normal View History

2023-03-08 01:57:30 +00:00
#!/sbin/openrc-run
name=$RC_SVCNAME
error_log=/var/log/qubes/$RC_SVCNAME.log
depend() {
need qubes-db
need qubes-meminfo-writer
need qubes-core-early
}
start()
{
echo "Finagling printer icon:" | tee -a "$error_log"
/usr/lib/qubes/init/control-printer-icon.sh 2>&1 | tee -a "$error_log"
echo "Executing Qubes misc post scripts:" | tee -a "$error_log"
/usr/lib/qubes/init/misc-post.sh 2>&1 | tee -a "$error_log"
echo "Setting up IP:" | tee -a "$error_log"
/usr/lib/qubes/setup-ip add eth0 2>&1 | tee -a "$error_log"
echo "Syncing clock" | tee -a "$error_log"
/usr/bin/qvm-sync-clock | tee -a "$error_log"
2023-03-08 01:57:30 +00:00
}
stop()
{
/usr/lib/qubes/init/misc-post-stop.sh
}