diff options
author | Rob Crittenden <rcritten@redhat.com> | 2010-02-03 16:31:36 -0500 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2010-02-09 04:07:33 -0700 |
commit | 8f5d9bb62e997a0ac31f8089baf855637db462e1 (patch) | |
tree | 0755593d17a5689cd814e3c044dad8f407b40374 | |
parent | 8a4ab2a0e55b8d2d3531f3b19dd2c3d46d2959ea (diff) | |
download | freeipa-8f5d9bb62e997a0ac31f8089baf855637db462e1.tar.gz freeipa-8f5d9bb62e997a0ac31f8089baf855637db462e1.tar.xz freeipa-8f5d9bb62e997a0ac31f8089baf855637db462e1.zip |
Add status option to ipactl
Resolves #503437
-rwxr-xr-x[-rw-r--r--] | install/tools/ipactl | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/install/tools/ipactl b/install/tools/ipactl index 96c96a4b6..e7544cfda 100644..100755 --- a/install/tools/ipactl +++ b/install/tools/ipactl @@ -45,6 +45,18 @@ function stop() { fi } +function status() { + /sbin/service ipa_kpasswd status + /sbin/service httpd status + /sbin/service krb5kdc status + /sbin/service dirsrv status + /sbin/service ntpd status + + if [ -e /var/lib/pki-ca ]; then + /sbin/service pki-cad status + fi +} + case "$1" in restart) stop @@ -56,8 +68,11 @@ start) stop) stop ;; +status) + status + ;; *) - echo "Usage: ipactl {start|stop|restart}" + echo "Usage: ipactl {start|stop|restart|status}" exit 1 ;; esac |