2010-05-17 07:23:37 +00:00
|
|
|
#!/bin/sh
|
2011-07-27 07:40:38 +00:00
|
|
|
# chkconfig: 2345 20 80
|
|
|
|
# description: pugixml autotest script
|
2010-05-17 07:23:37 +00:00
|
|
|
# put this to /etc/init.d/pugixml-autotest.sh, then launch
|
2011-07-27 07:40:38 +00:00
|
|
|
# Debian/Ubuntu: sudo update-rc.d pugixml-autotest.sh defaults 80
|
|
|
|
# Fedora/RedHat: sudo chkconfig --add pugixml-autotest.sh
|
2010-05-17 07:23:37 +00:00
|
|
|
# don't forget to chmod +x pugixml-autotest.sh and to replace /home/USERNAME with actual path
|
|
|
|
|
|
|
|
if [ "$1" = "start" ]
|
|
|
|
then
|
|
|
|
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin
|
|
|
|
cd /home/USERNAME/pugixml
|
|
|
|
perl tests/autotest-remote-host.pl "shutdown -P now" &
|
|
|
|
fi
|