girish@cloudron.io
bcb0e61bfc
Kill child processes
...
On Unix, child processes are not killed when parent dies.
Each process is part of a process group (pgid). When pgid == pid,
it is the process group leader.
node creates child processes with the parent as the group leader
(detached = false).
You can send a signal to entire group using kill(-pgid), as in,
negative value in argument. Systemd can be made to do this by
setting the KillMode=control-group.
Unrelated: Process groups reside inside session groups. Each session
group has a controlling terminal. Only one process in the session
group has access to the terminal. Process group is basically like
a bash pipeline. A session group is the entire login session with only
one process having terminal access at a time.
Fixes #543
2016-01-21 17:44:17 -08:00
girish@cloudron.io
6dc11edafe
make exec route more debugging friedly
...
allow upto 30 minutes of idle connection
2016-01-18 12:49:06 -08:00
Johannes Zellner
d7ddc56ab3
Not applicable for ubuntu 15.10
2016-01-11 11:15:04 +01:00
Girish Ramakrishnan
ba90490ad9
Simply remove the old sudoers file that we installed
...
This is alternate fix to 743b8e757b
2016-01-05 20:24:05 -08:00
Johannes Zellner
59997560eb
Do not remove all files from /etc/sudoers.d/
...
On DO with caas, there are no other files initially, but
on the ec2 ubuntu images, the files have set the rules for the
ubuntu user to be able to sudo without password, which we want to
keep
2016-01-05 17:06:01 +01:00
Johannes Zellner
026e71cc6e
Default provider is caas
2016-01-05 15:58:16 +01:00
Johannes Zellner
9483c3afbc
Also support /dev/xvda1 with collectd, needed for ec2
2016-01-04 17:26:02 +01:00
Johannes Zellner
1edddf79d2
token is not yet required for provisioning anymore
2015-12-29 19:47:13 +01:00
Johannes Zellner
3a4ec5c86a
The var is named
2015-12-29 12:25:22 +01:00
Johannes Zellner
ebf1cfc113
Read provider field from cloudron.conf
2015-12-29 11:29:08 +01:00
Girish Ramakrishnan
87f5e3f102
workaround journalctl logging bug
2015-12-22 13:05:00 -08:00
Girish Ramakrishnan
4bd88e1220
create acme data dir
2015-12-15 00:21:29 -08:00
Girish Ramakrishnan
abc4975b3d
add tls configuration to database
2015-12-12 15:40:33 -08:00
Girish Ramakrishnan
36d81ff8d1
do not write tls config in this version
2015-12-12 14:21:50 -08:00
Girish Ramakrishnan
f32027e15b
Try alternative configuration for systemd restart rate limit
2015-12-12 13:15:41 -08:00
Girish Ramakrishnan
4b6a92955b
configure to get only 1 email every 10 minutes
2015-12-12 11:47:32 -08:00
Girish Ramakrishnan
35a2da744c
fix typo
2015-12-11 23:29:07 -08:00
Girish Ramakrishnan
3fbcbf0e5d
store tls config in database
2015-12-11 22:14:56 -08:00
Girish Ramakrishnan
875ec1028d
remove backward compat code now that we have migrated
2015-12-10 16:31:22 -08:00
Girish Ramakrishnan
853db53f82
rename admin.cert/.key to {admin_fqdn}.cert/.key
2015-12-10 14:05:44 -08:00
Girish Ramakrishnan
5992c0534a
remove dead comment
2015-12-10 13:56:00 -08:00
Girish Ramakrishnan
1874c93c5c
no need to template main nginx config
2015-12-10 13:54:53 -08:00
Girish Ramakrishnan
6fc972d160
set default response type to text/plain
2015-12-09 18:34:13 -08:00
Girish Ramakrishnan
88f0240757
serve acme directory from nginx
2015-12-08 19:04:48 -08:00
Girish Ramakrishnan
e3cc12da4f
new addon images based on docker 1.9.0
2015-11-18 17:53:58 -08:00
Johannes Zellner
8bd9a6c109
Do not serve up the status page for 500 upstream errors
2015-11-13 09:39:33 +01:00
Girish Ramakrishnan
2bb657a733
rename variable for clarity
2015-11-12 12:40:41 -08:00
Girish Ramakrishnan
bc48171626
use fallback cert from backup if it exists
2015-11-12 12:37:43 -08:00
Girish Ramakrishnan
50924b0cd3
use admin.cert and admin.key if present in backup dir
2015-11-12 12:33:52 -08:00
Girish Ramakrishnan
eaf9febdfd
do not save aws and backupKey
...
it is now part of backupConfig
2015-11-09 08:39:01 -08:00
Girish Ramakrishnan
adc395f888
save backupConfig in db
2015-11-07 21:45:38 -08:00
Girish Ramakrishnan
05d4ad3b5d
read new format of restore keys
2015-11-07 17:53:54 -08:00
Girish Ramakrishnan
bd5b15e279
insert any dns config into settings
2015-11-04 08:45:12 -08:00
Girish Ramakrishnan
917832e0ae
Change DKIM selector to cloudron
2015-10-28 16:16:15 -07:00
Johannes Zellner
e81db9728a
Set the cert and key dynamically when rendering nginx appconfig
2015-10-28 12:42:04 +01:00
Johannes Zellner
8f670eb755
Add per app cert dir
2015-10-28 12:23:16 +01:00
Girish Ramakrishnan
b5358e7565
recreate docker containers for hostname change
2015-10-23 16:30:17 -07:00
Johannes Zellner
18a464b1d2
Make data/ directory writeable by yellowtent user
2015-10-21 17:18:45 +02:00
Girish Ramakrishnan
0566bad6d9
bump infra version
2015-10-20 15:07:35 -07:00
Girish Ramakrishnan
9c157246b7
add type field to clients table
2015-10-15 17:35:47 -07:00
Girish Ramakrishnan
8afe537497
fix typo
2015-10-15 15:32:14 -07:00
Girish Ramakrishnan
057b89ab8e
Check error code of image removal
2015-10-15 14:06:05 -07:00
Girish Ramakrishnan
6b82fb9ddb
Remove old addon images on infra update
...
Fixes #329
2015-10-15 12:01:31 -07:00
Girish Ramakrishnan
f57c91847d
addons do not write to /var/log anymore
2015-10-15 11:00:51 -07:00
Johannes Zellner
eda4dc83a3
Do not fail in container.sh when trying to remove non-existing directories
2015-10-15 18:06:57 +02:00
Johannes Zellner
ae1bfaf0c8
roleUser is gone as well
2015-10-15 12:50:48 +02:00
Girish Ramakrishnan
5d389337cd
make /var/log readonly
...
Expect apps to redirect logs of stdout/stderr
Part of #503
2015-10-15 00:46:50 -07:00
Girish Ramakrishnan
a977597217
cleanup tmpdir in janitor
2015-10-14 23:21:03 -07:00
Girish Ramakrishnan
7f29eed326
fold janitor into main box code cron job
...
the volume cleaner will now also come into janitor
2015-10-14 22:39:34 -07:00
Girish Ramakrishnan
ec895a4f31
do not use -f to logrotate
...
Normally, logrotate is run as a daily cron job. It will not modify a log
multiple times in one day unless the criterion for that log is based on
the log's size and logrotate is being run multiple times each day, or
unless the -f or --force option is used.
2015-10-14 15:10:53 -07:00