Skip to content

Commit

Permalink
systemd service config with user/group
Browse files Browse the repository at this point in the history
  • Loading branch information
mightqxc committed Jul 3, 2024
1 parent b5ef5f0 commit bfa8bef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pandaharvester/commit_timestamp.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
timestamp = "26-06-2024 13:30:57 on flin (by mightqxc)"
timestamp = "03-07-2024 15:02:03 on flin (by mightqxc)"
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# placed in a sub directory since the top directory is problematic for old setuptoos and legacy python
# placed in a sub directory since the top directory is problematic for old setuptools and legacy python

[build-system]
requires = ["hatchling"]
Expand All @@ -7,7 +7,7 @@ build-backend = "hatchling.build"
[project]
name = "pandaharvester"
dynamic = ["version"]
description = "Havester Package"
description = "Harvester Package"
readme = "README.md"
license = {text = "Apache-2.0"}
authors = [
Expand Down
2 changes: 2 additions & 0 deletions templates/systemd/panda_harvester-uwsgi.service.template
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Description=PanDA Harvester uWSGI
After=network.target remote-fs.target nss-lookup.target

[Service]
User=@@panda_user@@
Group=@@panda_group@@
Type=exec
RemainAfterExit=true
EnvironmentFile=@@virtual_env@@/etc/sysconfig/panda_harvester_env
Expand Down

0 comments on commit bfa8bef

Please sign in to comment.