Skip to content
Permalink
Browse files

Add auto start script

  • Loading branch information...
turtleDeng committed Apr 10, 2019
1 parent 6730ecd commit 64760523ea29ca0ad1d85b763f0e8a8e6954db9c
Showing with 5 additions and 0 deletions.
  1. +5 −0 rpm/emqx.spec
@@ -56,6 +56,11 @@ if [ $1 = 1 ]; then
ln -s %{_lib_home}/bin/emqx_ctl %{_bindir}/emqx_ctl
fi
%{_post_addition}
if [ -e %{_initddir}/%{_name} ] ; then
/sbin/chkconfig --add %{_name}
else
systemctl enable %{_name}.service
fi

%preun
%{_preun_addition}

0 comments on commit 6476052

Please sign in to comment.
You can’t perform that action at this time.