1

Add original scripts

This commit is contained in:
eleksir
2016-09-04 22:20:40 +03:00
commit 8e3af042d2
128 changed files with 19003 additions and 0 deletions

46
snapshot.sh Executable file
View File

@@ -0,0 +1,46 @@
#!/bin/sh
#
# chkconfig: 345 13 89
# description: Starts and stops the snapshot service
#
# Source function library.
DDSNAP_KO=/usr/local/lib/dm-ddsnap.ko
start()
{
echo $"Starting snapshot service: "
/sbin/insmod $DDSNAP_KO
}
stop()
{
echo $"Stopping snapshot service: "
/sbin/rmmod dm_ddsnap
}
restart()
{
stop
sleep 1
start
}
[ -f $DDSNAP_KO ] || exit 0
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
esac
exit $RETVAL