Got services working with config options

This commit is contained in:
Tim Edwards 2019-05-09 08:17:18 +02:00
parent 473810e676
commit 24be1cdd8a
2 changed files with 3 additions and 3 deletions

View File

@ -28,5 +28,5 @@ apps:
plugs: [network, network-bind]
novncsvc:
command: utils/svc_wrapper.sh
daemon: forking
daemon: simple
plugs: [network, network-bind]

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/sh
listen_port="$(snapctl get novncsvc.listen-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
echo "novncsvc disabled"
else
./utils/launch.sh --listen $listen_port --vnc $vnc_host_port
$SNAP/utils/launch.sh --listen $listen_port --vnc $vnc_host_port
fi