2016-03-20 19:15:51 +00:00
|
|
|
#!/bin/bash
|
2013-07-25 03:47:45 +00:00
|
|
|
|
|
|
|
private_notify="/home/mercurial/tmp/notify.tmp"
|
|
|
|
|
2013-09-28 02:53:51 +00:00
|
|
|
# Test for debian systems
|
|
|
|
if [ -e /etc/debian_version ]; then
|
|
|
|
reload_cmd="sudo /etc/init.d/apache2 reload"
|
|
|
|
else
|
|
|
|
reload_cmd="/usr/sbin/apachectl -k graceful"
|
|
|
|
fi
|
2013-07-25 03:47:45 +00:00
|
|
|
if [ -e $private_notify ]; then
|
|
|
|
rm -f $private_notify
|
|
|
|
$reload_cmd
|
|
|
|
fi
|
|
|
|
|