Bug #1312

Web App Server Field

Added by cpg over 8 years ago. Updated over 8 years ago.

Target version:
Start date:
Due date:
% Done:



The web app server field does not allow for the at sign @. Dashes (-) seem to be ok, but the app VNC need to use the sign as part of the service name.

Using vncserver@4 in the field becomes 4.conf and 4.service for the Monit configuration file. As a result, the server cannot be started, stopped, or restarted using the dashboard or by monit should it stop on it's own.


#1 Updated by cpg over 8 years ago

this is the parsing code:

the pid file is what comes after the colon, unless it's empty.

here is the match for "":

the matches are:


by default, if the pid file is it will become /var/run/ by default.

so the "" string should be working as
expected. i see that in the VNC app but I do not see anything in the VNC (clone) app.

#2 Updated by bigfoot65 over 8 years ago

I agree. I see how the regex is working, but for some reason when I test the install of the app, it ends up /etc/monit.d/4.conf.

I have added it back on the clone app.

You can see the same behavior in the test variables app. I added the service there as an easy way to test without having to install VNC. It does not work as designed.

#3 Updated by bigfoot65 over 8 years ago generates the The /etc/monit.d/4.conf file.

The file contains:
check process 4 with pidfile /var/run/
start program = "/usr/bin/systemctl start 4.service"
stop program = "/usr/bin/systemctl stop 4.service"

Not sure why the number after the sign causes issues. OpenVPN uses the , but it is followed by amahi and not a number. It generates the monit file correctly.

Hope that helps clarify the issue.

#4 Updated by cpg over 8 years ago

  • Target version set to amahi-7-2

i see. this was fixed in
and it's slated to be released in amahi 7.2.

i believe it's fixed in a recent test release:

if it is please close this bug.

#5 Updated by bigfoot65 over 8 years ago

  • Status changed from New to Closed

The update requires mlocate dependency which is not installed. After adding it, all works perfectly.

Awesome job!

Also available in: Atom