Skip to content

Commit

Permalink
type changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajveerchoubisa committed Dec 10, 2024
1 parent fdb6199 commit efa0641
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion examples/linux/systemd/systemd-talawa-api.service
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
# This defaults to /etc/ directory of the Talawa API codebase
# 4) Edit the User and Group to match the POSIX user you want the daemon
# to run as.
# 4a) Set appropriate permissions:
# sudo chown -R talawa:talawa /etc/talawa
# sudo chmod 750 /etc/talawa
# 4b) If using SELinux, set the correct context:
# sudo semanage fcontext -a -t bin_t "/home/talawa/talawa-api/main.py"
# sudo restorecon -v /home/talawa/talawa-api/main.py
# 5) Run the command "sudo systemctl daemon-reload". This needs to be run only once
# 6) Run the command "sudo systemctl start talawa-api.service" to start
# 7) Run the command "sudo systemctl stop talawa-api.service" to stop
Expand Down Expand Up @@ -44,7 +50,7 @@ ExecReload=${VIRTUAL_ENV}/python3 ${CODEROOT}/main.py ${RESTART}

RemainAfterExit=yes
GuessMainPID=yes
Type=forking
Type=simple
RuntimeDirectory=talawa

# Restart policy
Expand Down

0 comments on commit efa0641

Please sign in to comment.