From 59e5a3c130aa292c335698423b879ff7be7e608f Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Fri, 2 Nov 2012 01:25:14 -0400 Subject: Added RA scripts. --- scripts/ra-create.sh | 15 +++++++++++++++ scripts/ra-remove.sh | 8 ++++++++ scripts/ra-restart.sh | 4 ++++ scripts/ra-start.sh | 5 +++++ scripts/ra-stop.sh | 5 +++++ 5 files changed, 37 insertions(+) create mode 100755 scripts/ra-create.sh create mode 100755 scripts/ra-remove.sh create mode 100755 scripts/ra-restart.sh create mode 100755 scripts/ra-start.sh create mode 100755 scripts/ra-stop.sh (limited to 'scripts') 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 -- cgit