diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-11-02 01:25:14 -0400 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2012-11-02 01:25:14 -0400 |
commit | 59e5a3c130aa292c335698423b879ff7be7e608f (patch) | |
tree | 102fbe94a15e2f87811cf28a17bd5d1d6aa74a2b | |
parent | 318e2d96ca495f58cdbcb058a12e0b663aba13b0 (diff) | |
download | pki-dev-59e5a3c130aa292c335698423b879ff7be7e608f.tar.gz pki-dev-59e5a3c130aa292c335698423b879ff7be7e608f.tar.xz pki-dev-59e5a3c130aa292c335698423b879ff7be7e608f.zip |
Added RA scripts.
-rwxr-xr-x | scripts/ra-create.sh | 15 | ||||
-rwxr-xr-x | scripts/ra-remove.sh | 8 | ||||
-rwxr-xr-x | scripts/ra-restart.sh | 4 | ||||
-rwxr-xr-x | scripts/ra-start.sh | 5 | ||||
-rwxr-xr-x | scripts/ra-stop.sh | 5 |
5 files changed, 37 insertions, 0 deletions
diff --git a/scripts/ra-create.sh b/scripts/ra-create.sh new file mode 100755 index 0000000..5457a38 --- /dev/null +++ b/scripts/ra-create.sh @@ -0,0 +1,15 @@ +#!/bin/sh -x + +. ./ra-include.sh + +pkicreate -pki_instance_root=$INSTANCE_ROOT \ + -pki_instance_name=$RA_INSTANCE_NAME \ + -subsystem_type=$RA_SUBSYSTEM_TYPE \ + -secure_port=$RA_SECURE_PORT \ + -non_clientauth_secure_port=$RA_NON_CLIENTAUTH_SECURE_PORT \ + -unsecure_port=$RA_UNSECURE_PORT \ + -user=$INSTANCE_USER \ + -group=$INSTANCE_GROUP \ + -redirect conf=/etc/$RA_INSTANCE_NAME \ + -redirect logs=/var/log/$RA_INSTANCE_NAME \ + -verbose diff --git a/scripts/ra-remove.sh b/scripts/ra-remove.sh new file mode 100755 index 0000000..ef26899 --- /dev/null +++ b/scripts/ra-remove.sh @@ -0,0 +1,8 @@ +#!/bin/sh -x + +. ./ra-include.sh + +pkiremove -pki_instance_root=$INSTANCE_ROOT \ + -pki_instance_name=$RA_INSTANCE_NAME \ + -force \ + -verbose diff --git a/scripts/ra-restart.sh b/scripts/ra-restart.sh new file mode 100755 index 0000000..4bddf9d --- /dev/null +++ b/scripts/ra-restart.sh @@ -0,0 +1,4 @@ +#!/bin/sh -x + +./ra-stop.sh +./ra-start.sh diff --git a/scripts/ra-start.sh b/scripts/ra-start.sh new file mode 100755 index 0000000..e35d834 --- /dev/null +++ b/scripts/ra-start.sh @@ -0,0 +1,5 @@ +#!/bin/sh -x + +INSTANCE_NAME=pki-ra + +systemctl start pki-rad@$INSTANCE_NAME.service diff --git a/scripts/ra-stop.sh b/scripts/ra-stop.sh new file mode 100755 index 0000000..b5f5e06 --- /dev/null +++ b/scripts/ra-stop.sh @@ -0,0 +1,5 @@ +#!/bin/sh -x + +INSTANCE_NAME=pki-ra + +systemctl stop pki-rad@$INSTANCE_NAME.service |