mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
committed by
Jason Gerard DeRose
parent
8a4ab2a0e5
commit
8f5d9bb62e
17
install/tools/ipactl
Normal file → Executable file
17
install/tools/ipactl
Normal file → Executable file
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user