]>
git.proxmox.com Git - pve-manager.git/blob - bin/init.d/spiceproxy
5 # Required-Start: $remote_fs $network $syslog pveproxy
6 # Required-Stop: $remote_fs $network $syslog pveproxy
7 # Default-Start: 2 3 4 5
9 # Short-Description: PVE SPICE Proxy Server
12 .
/lib
/lsb
/init-functions
14 PATH
=/sbin
:/bin
:/usr
/bin
:/usr
/sbin
15 DAEMON
=/usr
/bin
/spiceproxy
17 DESC
="PVE SPICE Proxy Server"
18 RUNDIR
=/var
/run
/pveproxy
19 PIDFILE
=${RUNDIR}/spiceproxy.pid
21 test -f $DAEMON ||
exit 0
23 # avoid warnings about uninstalled locales when pveproxy executes commands
26 mkdir
-p ${RUNDIR} || true
27 chmod 0700 ${RUNDIR} || true
28 chown www-data
:www-data
${RUNDIR} || true
32 # Include defaults if available
33 if [ -f /etc
/default
/$NAME ] ; then
39 log_daemon_msg
"Starting $DESC" "$NAME"
44 log_daemon_msg
"Stopping $DESC" "$NAME"
49 log_daemon_msg
"Restarting $DESC" "$NAME"
55 echo "Usage: $N {start|stop|restart|force-reload}"