summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/ra-create.sh15
-rwxr-xr-xscripts/ra-remove.sh8
-rwxr-xr-xscripts/ra-restart.sh4
-rwxr-xr-xscripts/ra-start.sh5
-rwxr-xr-xscripts/ra-stop.sh5
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