2015-02-05 03:14:41 +01:00
|
|
|
#!/bin/bash
|
2013-03-20 06:21:16 +01:00
|
|
|
#
|
|
|
|
# chkconfig: 345 90 90
|
|
|
|
# description: Executes Qubes core scripts at VM boot
|
|
|
|
#
|
|
|
|
# Source function library.
|
|
|
|
. /etc/rc.d/init.d/functions
|
|
|
|
|
2016-10-22 17:43:16 +02:00
|
|
|
# Source Qubes library.
|
|
|
|
. /usr/lib/qubes/init/functions
|
|
|
|
|
2013-03-20 06:21:16 +01:00
|
|
|
start()
|
|
|
|
{
|
2016-10-22 17:43:16 +02:00
|
|
|
have_qrexec_agent || return
|
2013-03-20 06:21:16 +01:00
|
|
|
echo -n $"Starting Qubes RPC agent:"
|
|
|
|
/usr/lib/qubes/qrexec-agent 2>/var/log/qubes/qrexec-agent.log &
|
|
|
|
success
|
|
|
|
echo ""
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
stop()
|
|
|
|
{
|
2016-10-22 17:43:16 +02:00
|
|
|
have_qrexec_agent || return
|
|
|
|
killproc qrexec-agent
|
2013-03-20 06:21:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
|
|
|
start
|
|
|
|
;;
|
|
|
|
stop)
|
|
|
|
stop
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo $"Usage: $0 {start|stop}"
|
|
|
|
exit 3
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
exit $RETVAL
|