Skip to content

Commit 09ed2fb

Browse files
committed
harmonize how to restart seatable inside the docker container
1 parent 95915bc commit 09ed2fb

File tree

17 files changed

+90
-64
lines changed

17 files changed

+90
-64
lines changed

docs/configuration/authentication/saml.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,7 @@ SAML_CERTS_DIR = '/shared/certs'
123123

124124
### Testing
125125

126-
A restart of the SeaTable service to activate the configuration settings.
127-
128-
```
129-
# docker exec -it seatable bash
130-
# seatable.sh restart
131-
```
126+
Now [restart SeaTable](../../maintenance/restart-seatable.md) to activate the configuration settings.
132127

133128
Navigate to the login page of your SeaTable Server and click on "Single Sign-On" and try to log in. If the configuration is correct, you'll be redirected the IdP's login. Enter the credentials of a user that was assigned to the application created above.
134129

docs/configuration/dtable-api-gateway-conf.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ In the default values below, a value in the form `$XYZ` refers to an environment
2020

2121
The following options are grouped by their sections.
2222

23-
Please note that SeaTable does not create the `dtable-api-gateway.conf` file by default. The `api-gateway` will use the default configuration values if the file does not exist.
23+
## Example configuration
24+
25+
SeaTable does not create the `dtable-api-gateway.conf` file by default. The `api-gateway` will use the default configuration values if the file does not exist.
2426

2527
## Available configuration options
2628

docs/configuration/dtable-events-conf.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ The following options are grouped by their sections.
3838
By default, `dtable-events.conf` will be empty after the first startup of SeaTable:
3939

4040
```python
41+
[CLEAN DB]
42+
enabled = true
4143
```
4244

4345
## Available configuration options

docs/configuration/dtable-web-settings.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# dtable web settings
22

3-
You need to restart SeaTable so that your changes take effect. Just execute the following command at your command line.
4-
5-
```bash
6-
docker exec -i seatable-server /templates/seatable.sh restart
7-
```
3+
You need to [restart SeaTable](../maintenance/restart-seatable.md) so that your changes take effect.
84

95
You can also modify some of the config items as system administrator via web interface. These config items are saved in the database table (dtable_db/constance_config). The configuration in the database has a higher priority then the items in config file. If you want to disable settings via web interface, you can add `ENABLE_SETTINGS_VIA_WEB = False` to `dtable_web_settings.py`.
106

docs/customization/overview.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,4 @@ Keep this in mind, but the articles will explain precisely where you should do t
2222
## How to restart SeaTable?
2323

2424
Changes in the configuration files, require a restart of the SeaTable container or the SeaTable service.
25-
SeaTable service can be restarted with this command:
26-
27-
```
28-
docker exec -i seatable-server /templates/seatable.sh restart
29-
```
25+
Read [here, how to restart SeaTable or the complete container](../maintenance/restart-seatable.md).

docs/customization/page-templates.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,7 @@ $(function() {
182182

183183
### 4. Restart seatable service
184184

185-
Only one command is missing to restart SeaTable and to activate your new login page.
186-
187-
```
188-
docker exec -i seatable-server /templates/seatable.sh restart
189-
```
185+
Now [restart SeaTable](../maintenance/restart-seatable.md) to activate your new login page.
190186

191187
## Customize CSS
192188

docs/installation/advanced/database-standalone.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,28 @@ status: wip
66

77
Managed Database is an often used managed service. SeaTable can easily be configured to use a separate database. We recommend to initialize SeaTable with the default mariadb container. Then dump the database, load the dump to a separate database, update the `.env` file and restart SeaTable. Due to this assumption, this manual is the same for a new SeaTable Server or a service where you want to migrate the database.
88

9-
## Stop Database container and SeaTable
9+
## Stop SeaTable
1010

1111
```bash
12-
docker stop mariadb
13-
docker exec -it seatable-server seatable.sh stop
12+
docker stop seatable-server
1413
```
1514

15+
Now you can be sure, that no more records are written or modified in the database.
16+
1617
## Dump and restore to another database
1718

1819
Please refer to [Backup and Recovery](../../maintenance/backup-recovery.md#mariadb-database) for instructions regarding the backup process for the MariaDB database.
1920

2021
You can use the `mariadb` CLI to import the contents of the dumped databases into the managed databases.
2122

23+
## Stop Mariadb
24+
25+
After the dump, stop also the database container:
26+
27+
```bash
28+
docker stop mariadb
29+
```
30+
2231
## Don't start mariadb container
2332

2433
Create a copy of `seatable-server.yml` and rename it to `custom-seatable-server.yml`.
@@ -47,11 +56,7 @@ MARIADB_PASSWORD=
4756

4857
## Restart SeaTable
4958

50-
After that you can restart SeaTable service.
51-
52-
```bash
53-
docker restart seatable-server
54-
```
59+
After that you can [restart SeaTable](../../maintenance/restart-seatable.md).
5560

5661
## Troubleshooting
5762

docs/installation/advanced/s3-migration.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,10 @@ docker exec -it seatable-server bash
4242
cd /templates
4343
./migrate-seafile-data.sh
4444
./migrate-storage-data.sh
45-
46-
# after the migration has finished, you can restart SeaTable
47-
seatable.sh restart
4845
```
4946

47+
After the migration has finished, you can [restart SeaTable](../../maintenance/restart-seatable.md)
48+
5049
### Avatars
5150

5251
<!-- md:version 4.4 -->

docs/installation/advanced/s3.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ Bases and avatars require one bucket, to store the content of picture and files
3535

3636
!!! failure "Restart required"
3737

38-
Don't forget to restart SeaTable service after these configuration changes. Easiest with this command:
39-
```
40-
docker exec -it seatable-server seatable.sh restart
41-
```
38+
Don't forget to [restart SeaTable service](../../maintenance/restart-seatable.md) after these configuration changes.
4239

4340
!!! tip "Option: use_v4_signature"
4441

docs/installation/cluster/dtable-db-standalone.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ INNER_DTABLE_DB_URL = 'http://192.168.0.3' # LAN dtable-db server's url
3434
```sh
3535
docker compose up -d
3636

37-
docker exec -it seatable bash
38-
39-
seatable.sh
40-
4137
```
4238

4339
When you see following in the output log, it means success:
@@ -63,9 +59,7 @@ Modify dtable-server configuration file `/Your SeaTable data volume/seatable/con
6359

6460
```sh
6561
docker compose up -d
66-
6762
docker exec -it seatable bash
68-
6963
seatable.sh
7064

7165
```
@@ -201,10 +195,7 @@ DTABLE_EVENTS_TASK_MODE=all
201195

202196
```sh
203197
docker compose up -d
204-
205-
docker exec -it seatable bash
206-
207-
seatable.sh
198+
docker exec seatable-server /opt/seatable/scripts/seatable.sh
208199

209200
```
210201

0 commit comments

Comments
 (0)