Index: scripts/usr/local/lib/7dtd/commands/backup.sh
===================================================================
--- scripts/usr/local/lib/7dtd/commands/backup.sh	(revision 19)
+++ scripts/usr/local/lib/7dtd/commands/backup.sh	(revision 20)
@@ -1,4 +1,4 @@
 #!/bin/bash
-# Version 4
+# Version 5
 
 # Backups game data files.
Index: scripts/usr/local/lib/7dtd/commands/instances.sh
===================================================================
--- scripts/usr/local/lib/7dtd/commands/instances.sh	(revision 19)
+++ scripts/usr/local/lib/7dtd/commands/instances.sh	(revision 20)
@@ -1,4 +1,4 @@
 #!/bin/bash
-# Version 4
+# Version 5
 
 
Index: scripts/usr/local/lib/7dtd/commands/start.sh
===================================================================
--- scripts/usr/local/lib/7dtd/commands/start.sh	(revision 19)
+++ scripts/usr/local/lib/7dtd/commands/start.sh	(revision 20)
@@ -1,4 +1,4 @@
 #!/bin/bash
-# Version 4
+# Version 5
 
 # Tries to start the 7dtd instance.
@@ -31,4 +31,8 @@
 		rm $SDTD_BASE/engine/7DaysToDie_Data/output_log.txt
 		
+		for H in $(getHooksFor serverPreStart); do
+			$H $INSTANCE
+		done
+
 		SSD_PID="--pidfile $(getInstancePath $1)/7dtd.pid --make-pidfile"
 		SSD_DAEMON="--background --no-close"
@@ -38,4 +42,9 @@
 		start-stop-daemon --start $SSD_PID $SSD_DAEMON $SSD_USER --chdir $SDTD_BASE/engine --exec $WINE -- $SDTD_BASE/engine/7DaysToDie.exe $OPTS > $(getInstancePath $1)/stdout.log 2>&1
 		sleep 1
+
+		for H in $(getHooksFor serverPostStart); do
+			$H $INSTANCE
+		done
+
 		if [ $(isRunning $1) -eq 1 ]; then
 			SSD_MONITOR_PID="--pidfile $(getInstancePath $1)/monitor.pid --make-pidfile"
Index: scripts/usr/local/lib/7dtd/commands/status.sh
===================================================================
--- scripts/usr/local/lib/7dtd/commands/status.sh	(revision 19)
+++ scripts/usr/local/lib/7dtd/commands/status.sh	(revision 20)
@@ -1,4 +1,4 @@
 #!/bin/bash
-# Version 4
+# Version 5
 
 # Print status of given instance.
Index: scripts/usr/local/lib/7dtd/commands/stop.sh
===================================================================
--- scripts/usr/local/lib/7dtd/commands/stop.sh	(revision 19)
+++ scripts/usr/local/lib/7dtd/commands/stop.sh	(revision 20)
@@ -1,4 +1,4 @@
 #!/bin/bash
-# Version 4
+# Version 5
 
 # Tries to stop the 7dtd instance given as first parameter.
@@ -28,4 +28,8 @@
 	res=$(isRunning $1)
 	if [ $res -eq 1 ]; then
+		for H in $(getHooksFor serverPreStop); do
+			$H $INSTANCE
+		done
+
 		echo "Trying to gracefully shutdown..."
 		tmp=$(telnetCommand $1 shutdown)
@@ -50,4 +54,9 @@
 
 		rm $(getInstancePath $1)/7dtd.pid
+
+		for H in $(getHooksFor serverPostStop); do
+			$H $INSTANCE
+		done
+
 		echo "Done"	
 	else
Index: scripts/usr/local/lib/7dtd/commands/updateengine.sh
===================================================================
--- scripts/usr/local/lib/7dtd/commands/updateengine.sh	(revision 19)
+++ scripts/usr/local/lib/7dtd/commands/updateengine.sh	(revision 20)
@@ -1,4 +1,4 @@
 #!/bin/bash
-# Version 4
+# Version 5
 
 # Tries to start the 7dtd instance.
