Merge apphealthtask into box server

We used to run this as a separate process but no amount of node/v8 tweaking
makes them run as standalone with 50M RSS.

Three solutions were considered for the memory issue:
1. Use systemd timer. apphealthtask needs to run quiet frequently (10 sec)
   for the ui to get the app health update immediately after install.

2. Merge into box server (this commit)

3. Increase memory to 80M. This seems to make apphealthtask run as-is.
This commit is contained in:
Girish Ramakrishnan
2015-09-14 10:52:11 -07:00
parent f028649582
commit 1cd9d07d8c
4 changed files with 25 additions and 60 deletions

View File

@@ -2,8 +2,8 @@
Description=Cloudron Smart Cloud
Documentation=https://cloudron.io/documentation.html
StopWhenUnneeded=true
Requires=apphealthtask.service box.service janitor.timer oauthproxy.service
After=apphealthtask.service box.service janitor.timer oauthproxy.service
Requires=box.service janitor.timer oauthproxy.service
After=box.service janitor.timer oauthproxy.service
# AllowIsolate=yes
[Install]