|
|
@@ -3,7 +3,7 @@ Description=Start websockify
|
|
3
|
3
|
After=multi-user.target
|
|
4
|
4
|
|
|
5
|
5
|
[Service]
|
|
6
|
|
-Type=forking
|
|
|
6
|
+Type=simple
|
|
7
|
7
|
|
|
8
|
8
|
User=www-data
|
|
9
|
9
|
Group=www-data
|
|
|
@@ -14,13 +14,12 @@ Environment=TARGET_HOST=127.0.0.1
|
|
14
|
14
|
Environment=TARGET_PORT=5900
|
|
15
|
15
|
#EnvironmentFile=/etc/default/websockify
|
|
16
|
16
|
|
|
17
|
|
-PIDFile=/var/run/websockify.pid
|
|
18
|
17
|
PermissionsStartOnly=true
|
|
19
|
18
|
ExecStartPre=/bin/sh -c '\
|
|
20
|
19
|
touch /var/run/websockify.pid; \
|
|
21
|
20
|
chown www-data:www-data /var/run/websockify.pid'
|
|
22
|
21
|
WorkingDirectory=/tmp
|
|
23
|
|
-ExecStart=/usr/bin/websockify --daemon --pid /var/run/websockify.pid \
|
|
|
22
|
+ExecStart=/usr/bin/websockify \
|
|
24
|
23
|
${LISTEN_HOST}:${LISTEN_PORT} \
|
|
25
|
24
|
${TARGET_HOST}:${TARGET_PORT}
|
|
26
|
25
|
|