Add mechanism to reload domain related services (#1710)

This commit is contained in:
Tata 2019-04-23 17:34:49 +02:00 committed by Matthias Schiffer
parent 9dc1ac7f58
commit e81d1a390f
8 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,2 @@
#!/bin/sh
/etc/init.d/network restart

View File

@ -0,0 +1,17 @@
#!/bin/sh
cd "/lib/gluon/reload.d" || exit 1
err=0
for script in *; do
echo "Reloading: ${script}"
./"$script" || err=1
done
if [ $err -eq 1 ]; then
echo 'One or more daemons failed to reload.' >&2
exit 1
fi
exit 0

View File

@ -0,0 +1,2 @@
#!/bin/sh
/etc/init.d/fastd stop

View File

@ -0,0 +1,2 @@
#!/bin/sh
/etc/init.d/fastd start

View File

@ -0,0 +1,2 @@
#!/bin/sh
/etc/init.d/tunneldigger stop

View File

@ -0,0 +1,2 @@
#!/bin/sh
/etc/init.d/tunneldigger start

View File

@ -0,0 +1,2 @@
#!/bin/sh
/etc/init.d/gluon-respondd stop

View File

@ -0,0 +1,2 @@
#!/bin/sh
/etc/init.d/gluon-respondd start