Skip to content

Commit

Permalink
Report using supervisorctl as a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
alexAubin committed May 18, 2024
1 parent 6da772f commit 32fb8d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,11 @@ def remaining_replacebyyourapp(self):
if os.system("grep -I -qr 'REPLACEBYYOURAPP' %s 2>/dev/null" % self.path) == 0:
yield Error("You should replace all occurences of REPLACEBYYOURAPP.")

@test()
def supervisor_usage(self):
if os.system("grep -I -qr '^\s*supervisorctl' %s 2>/dev/null" % self.path) == 0:
yield Warning("Please don't rely on supervisor to run services. YunoHost is about standardization and the standard is to use systemd units...")

@test()
def bad_encoding(self):

Expand Down

0 comments on commit 32fb8d4

Please sign in to comment.