Skip to content

Commit

Permalink
Fix (event): update ejabberd service command to use 'try-restart' ins…
Browse files Browse the repository at this point in the history
…tead of 'try-reload-or-restart'
  • Loading branch information
stephdl committed Nov 19, 2024
1 parent a067bf7 commit cc81883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imageroot/events/user-domain-changed/20configure_ldap
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ if event.get('domain') != os.getenv('EJABBERD_LDAP_DOMAIN'):
if 'node_id' in event and str(event['node_id']) != os.getenv('NODE_ID'):
exit(0) # ignore event if the source is not in our node

agent.run_helper('systemctl', '--user', '-T', 'try-reload-or-restart', 'ejabberd.service').check_returncode()
agent.run_helper('systemctl', '--user', '-T', 'try-restart', 'ejabberd.service').check_returncode()

0 comments on commit cc81883

Please sign in to comment.