yggdrasil: stop properly
authorMaciej Krüger <mkg20001@gmail.com>
Wed, 1 Jun 2022 04:44:10 +0000 (06:44 +0200)
committerDavid Bauer <mail@david-bauer.net>
Thu, 2 Jun 2022 14:40:47 +0000 (16:40 +0200)
commitdb1ee5746cdaa03527eb6ac082a518bea302178a
tree0d2376b23b1722bd3d76587d94e0e56652e4f81d
parent49dbf87f1f0d56c20c1f026402699ffdb5cc31d5
yggdrasil: stop properly

Previously it was using killall with procd respand enabled

This was causing yggdrasil to restart after being killed

root@r3test-hap:/# service yggdrasil stop ; echo $? ; sleep 10s ; ps | grep yggdrasil
Terminated
143
 6701 root      653m S    /usr/sbin/yggdrasil -useconffile /tmp/yggdrasil.conf
 6748 root      1308 S    grep yggdrasil

Now it's just using whatever procd is using and see there, it actually stops

root@r3test-hap:/# service yggdrasil stop ; echo $? ; sleep 10s ; ps | grep yggdrasil
0
 6802 root      1308 S    grep yggdrasil

I assume there was some procd bug that kept it from being used properly

Signed-off-by: Maciej Krüger <mkg20001@gmail.com>
net/yggdrasil/files/yggdrasil.init