mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Report starting services with systemctl start instead of ynh_systemd_action
This commit is contained in:
parent
a47f5952cd
commit
2650e4cc4b
1 changed files with 5 additions and 0 deletions
|
@ -1365,6 +1365,11 @@ class Script(TestSuite):
|
||||||
"and should be avoided at all cost. Use 'reload' instead."
|
"and should be avoided at all cost. Use 'reload' instead."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@test()
|
||||||
|
def raw_systemctl_start(self):
|
||||||
|
if self.containsregex(r'systemctl start [^. ]+(\.service)?'):
|
||||||
|
yield Warning("Please do not use 'systemctl start' to start services. Instead, you should use ynh_systemd_action which will display the service log in case it fails to start. You can also use --line_match to wait until some specific word appear in the log, signaling the service indeed fully started.")
|
||||||
|
|
||||||
@test()
|
@test()
|
||||||
def quiet_systemctl_enable(self):
|
def quiet_systemctl_enable(self):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue