Skip to content

Commit

Permalink
Sysinit. 'AmbientCapabilities' added for systemd.
Browse files Browse the repository at this point in the history
  • Loading branch information
idlesign committed Oct 13, 2019
1 parent ad45e73 commit 72e4a94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion uwsgiconf/sysinit.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_tpl_systemd(conf):
"""
tpl = '''
# Place into: /etc/systemd/system/{project}.service
# Setup: sudo systemctl enable $PWD/{project}.service
# Setup: sudo systemctl enable --now $PWD/{project}.service
# Start: sudo systemctl start {project}.service
# Stop: sudo systemctl stop {project}.service
# Restart: sudo systemctl restart {project}.service
Expand All @@ -56,6 +56,8 @@ def get_tpl_systemd(conf):
Type=notify
StandardError=syslog
NotifyAccess=all
# Bind to priviledged ports.
AmbientCapabilities=CAP_NET_BIND_SERVICE
[Install]
WantedBy=multi-user.target
Expand Down

0 comments on commit 72e4a94

Please sign in to comment.