浏览代码

Merge branch 'unstable' of blezz-tech/sharix-open-webapp-base into unstable

Панюкова Александра Анатольевна 17 小时之前
父节点
当前提交
3c5fdc5a4f
共有 2 个文件被更改,包括 42 次插入8 次删除
  1. 34 0
      README.md
  2. 8 8
      bin/install_service.sh

+ 34 - 0
README.md

@@ -14,6 +14,40 @@ The base Django project of a service web application to which other modules are
 8. run `./bin/install_service.sh`
 9. check status service `systemctl status sharix_open.service`
 
+### Installation app systemd service
+
+run script
+
+```bash
+./bin/install_service.sh
+```
+
+### systemctl basic
+
+show status:
+
+```bash
+systemctl status sharix_main
+```
+
+restart:
+
+```bash
+systemctl restart sharix_main
+```
+
+stop:
+
+```bash
+systemctl restart sharix_main
+```
+
+start:
+
+```bash
+systemctl start sharix_main
+```
+
 ### Test Users
 
 During the installation/upgrade, you can pass the `GENERATE_TEST_USERS=1`

+ 8 - 8
bin/install_service.sh

@@ -1,17 +1,17 @@
 source ./bin/utils/functions.sh
 source .env
 
-echo_warning "Recreating sharix.service"
-\cp conf/sharix.service.example conf/sharix.service
-sed -i "s|WORKING_DIRECTORY|$(pwd)|g" conf/sharix.service
-echo_success "Recreated sharix.service"
+echo_warning "Recreating sharix_main.service"
+\cp conf/sharix_main.service.example conf/sharix_main.service
+sed -i "s|WORKING_DIRECTORY|$(pwd)|g" conf/sharix_main.service
+echo_success "Recreated sharix_main.service"
 
-echo_warning "Copying sharix_open.service to /etc/systemd/system/ folder"
-\cp conf/sharix.service /etc/systemd/system/sharix_${METASERVICE_NAME}.service
-echo_success "Copied sharix_open.service to /etc/systemd/system/ folder"
+echo_warning "Copying sharix_main.service to /etc/systemd/system/ folder"
+\cp conf/sharix_main.service /etc/systemd/system/sharix_main.service
+echo_success "Copied sharix_main.service to /etc/systemd/system/ folder"
 
 echo_warning "Reloading systemd daemon"
 systemctl daemon-reload
 echo_success "Reloaded systemd daemon"
 
-systemctl enable sharix_${METASERVICE_NAME}.service
+systemctl enable sharix_main.service