Slympp / ConanLinuxScript

Bash script made to install and administrate a Conan Exiles server running on Linux (Ubuntu 16.04). Include a Discord bot to send server informations on a specific channel.
6 stars 2 forks source link

Faulty kill command in conan_stop function #1

Open junkyhlm opened 6 years ago

junkyhlm commented 6 years ago

I´ve been using your script piece by piece for my own server mostly to learn to be better with shell scripts. In the function conan_stop you have the kill command exec kill -SIGINT $pid but what i´ve learned is that when using exec the shell terminates after the command so the proper use will be kill -SIGINT $pid without exec