From 32fb8d4049bb46a47e7d1e2dd3fcda8abbffc95c Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 18 May 2024 17:35:56 +0200 Subject: [PATCH] Report using supervisorctl as a warning --- package_linter.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package_linter.py b/package_linter.py index fc7fc09..78fc99e 100755 --- a/package_linter.py +++ b/package_linter.py @@ -808,6 +808,11 @@ class App(TestSuite): 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):