...
Code Block |
---|
[Unit] Description=openIMIS backend After=network-online.target [Service] WorkingDirectory=/home/openimis/oi/openimis-be_py/openIMIS/ ExecStart=/home/openimis/oi/venv/bin/python manage.py runserver Restart=always RestartSec=15s KillMode=process TimeoutSec=infinity User=openimis Group=openimis [Install] WantedBy=multi-user.target |
Be careful to adapt the 4 occurences of the “openimis” if your username is different:
two /home/openimis
...
User/Group
...
Start the server manually:
...