qports/qubes-vm-core/qubes-core.openrc

30 lines
682 B
Text
Executable file

#!/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"
}
stop()
{
/usr/lib/qubes/init/misc-post-stop.sh
}