Added a service wrapper (currently a placeholder) and changed snapcraft file back to just specifying 1 service
This commit is contained in:
parent
ddd7e6de12
commit
cdf6ebc219
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
# Obtain sleep-time value
|
||||
sleep_time="$(snapctl get sleep-time)"
|
||||
|
||||
# Validate it
|
||||
if ! expr "$sleep_time" : '^[0-9]*$' > /dev/null; then
|
||||
echo "\"$sleep_time\" is not a valid sleep time" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
|
@ -11,35 +11,21 @@ confinement: strict
|
|||
|
||||
parts:
|
||||
novnc:
|
||||
source: https://github.com/novnc/noVNC.git #https://github.com/novnc/noVNC/archive/v$SNAPCRAFT_PROJECT_VERSION.tar.gz
|
||||
source: https://github.com/tkedwards/noVNC.git # https://github.com/novnc/noVNC.git #https://github.com/novnc/noVNC/archive/v$SNAPCRAFT_PROJECT_VERSION.tar.gz
|
||||
plugin: dump
|
||||
source-branch: snap_package
|
||||
stage-packages:
|
||||
- websockify
|
||||
|
||||
hooks:
|
||||
configure:
|
||||
plugs: [network, network-bind]
|
||||
|
||||
apps:
|
||||
novnc:
|
||||
command: utils/launch.sh
|
||||
plugs: [network, network-bind]
|
||||
n5900:
|
||||
command: utils/launch.sh --vnc localhost:5900 --listen 6080
|
||||
daemon: simple
|
||||
plugs: [network, network-bind]
|
||||
n5901:
|
||||
command: utils/launch.sh --vnc localhost:5901 --listen 6081
|
||||
daemon: simple
|
||||
plugs: [network, network-bind]
|
||||
n5902:
|
||||
command: utils/launch.sh --vnc localhost:5902 --listen 6082
|
||||
daemon: simple
|
||||
plugs: [network, network-bind]
|
||||
n5903:
|
||||
command: utils/launch.sh --vnc localhost:5903 --listen 6083
|
||||
daemon: simple
|
||||
plugs: [network, network-bind]
|
||||
n5904:
|
||||
command: utils/launch.sh --vnc localhost:5904 --listen 6084
|
||||
daemon: simple
|
||||
plugs: [network, network-bind]
|
||||
n5905:
|
||||
command: utils/launch.sh --vnc localhost:5905 --listen 6085
|
||||
novncsvc:
|
||||
command: utils/svc_wrapper.py
|
||||
daemon: simple
|
||||
plugs: [network, network-bind]
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
|
||||
Loading…
Reference in New Issue