Add mechanism to reload domain related services (#1710)
This commit is contained in:
parent
9dc1ac7f58
commit
e81d1a390f
2
package/gluon-core/files/lib/gluon/reload.d/500-core
Executable file
2
package/gluon-core/files/lib/gluon/reload.d/500-core
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
/etc/init.d/network restart
|
17
package/gluon-core/files/usr/bin/gluon-reload
Executable file
17
package/gluon-core/files/usr/bin/gluon-reload
Executable 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
|
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
/etc/init.d/fastd stop
|
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
/etc/init.d/fastd start
|
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
/etc/init.d/tunneldigger stop
|
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
/etc/init.d/tunneldigger start
|
2
package/gluon-respondd/files/lib/gluon/reload.d/100-respondd-stop
Executable file
2
package/gluon-respondd/files/lib/gluon/reload.d/100-respondd-stop
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
/etc/init.d/gluon-respondd stop
|
2
package/gluon-respondd/files/lib/gluon/reload.d/900-respondd-start
Executable file
2
package/gluon-respondd/files/lib/gluon/reload.d/900-respondd-start
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
/etc/init.d/gluon-respondd start
|
Loading…
Reference in New Issue
Block a user