Got services working with config options
This commit is contained in:
parent
473810e676
commit
24be1cdd8a
|
|
@ -28,5 +28,5 @@ apps:
|
||||||
plugs: [network, network-bind]
|
plugs: [network, network-bind]
|
||||||
novncsvc:
|
novncsvc:
|
||||||
command: utils/svc_wrapper.sh
|
command: utils/svc_wrapper.sh
|
||||||
daemon: forking
|
daemon: simple
|
||||||
plugs: [network, network-bind]
|
plugs: [network, network-bind]
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/bin/sh
|
||||||
|
|
||||||
listen_port="$(snapctl get novncsvc.listen-port)"
|
listen_port="$(snapctl get novncsvc.listen-port)"
|
||||||
vnc_host_port="$(snapctl get novncsvc.vnc-host-port)"
|
vnc_host_port="$(snapctl get novncsvc.vnc-host-port)"
|
||||||
|
|
@ -9,5 +9,5 @@ if [ ! $listen_port_valid ] || [ -z "$vnc_host_port" ]; then
|
||||||
# invalid values mean the service is disabled, do nothing
|
# invalid values mean the service is disabled, do nothing
|
||||||
echo "novncsvc disabled"
|
echo "novncsvc disabled"
|
||||||
else
|
else
|
||||||
./utils/launch.sh --listen $listen_port --vnc $vnc_host_port
|
$SNAP/utils/launch.sh --listen $listen_port --vnc $vnc_host_port
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue