Folders and files
Where SuperAdmin keeps itself, your apps, the Nginx files, certificates, logs and backups.
On this page
SuperAdmin keeps everything in the folder /www/ on the server.
| Path | What it holds |
|---|---|
/www/superadmin/ | SuperAdmin and its scripts run.sh, reconfigure.sh and ssl.sh. |
/www/superadmin/.src/databases/ | The data of SuperAdmin: apps, users, alarms, settings and notifications. |
/www/superadmin/logs/debug.log | The output of SuperAdmin. |
/www/superadmin/user.guid | The Linux user that runs the apps, as name:uid:gid. |
/www/www/ | One folder per app. |
/www/nginx/ | One Nginx file per app, plus superadmin.conf for SuperAdmin itself. |
/www/ssl/ | Certificates. superadmin.key and superadmin.csr are the built-in self-signed certificate. |
/www/logs/ | Earlier logs of apps in release mode, earlier logs of SuperAdmin, and access logs. |
/www/node_modules/ | The total4 and total.js packages that the apps use. |
/www/*.tar.gz | Backups. See Backups. |
Files in an app folder
| File | What it is |
|---|---|
index.js | The start script that SuperAdmin generates for Total.js apps. SuperAdmin writes it again on every start. |
logs/debug.log | The output and errors of the app. |
superadmin.pid | The process id of the app. Do not remove it. |
superadmin.socket | The Unix socket between Nginx and the app, when the app uses one. Do not remove or open it. |
restart | Create this file to make SuperAdmin restart the app. See Restart an app from its own code. |
Restart SuperAdmin
As root on the server:
bash /www/superadmin/run.shThe script stops the running SuperAdmin and starts it again. Your apps keep running.