From 5ce97e6f22fd25279793fbc75211d2e86413ae73 Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Tue, 22 Jan 2008 17:03:46 -0500 Subject: initial stop/restart support Add Stop and Restart methods to the Manager object. We'll rename the Manager object to System in the near future. Use libpolkit to determine authorization. --- tools/solaris/ck-system-restart | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 tools/solaris/ck-system-restart (limited to 'tools/solaris/ck-system-restart') diff --git a/tools/solaris/ck-system-restart b/tools/solaris/ck-system-restart new file mode 100755 index 0000000..8e0664e --- /dev/null +++ b/tools/solaris/ck-system-restart @@ -0,0 +1,12 @@ +#!/bin/sh + +#Try for common tools +if [ -x "/sbin/shutdown" ] ; then + /sbin/shutdown -r now + exit $? +elif [ -x "/usr/sbin/shutdown" ] ; then + /usr/sbin/shutdown -r now + exit $? +else + exit 1 +fi -- cgit