summaryrefslogtreecommitdiffstats
path: root/security/p5-openxpki-deployment/files/openxpki.in
blob: acb2aa9cfd642005510c8b239bf22464adeb904f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
# $FreeBSD$

# PROVIDE: openxpki
# REQUIRE: LOGIN
# REQUIRE: postgresql
# REQUIRE: mysql
# KEYWORD: shutdown

# Define this variable in the file /etc/rc.conf:
# openxpki_enable="YES"
# to ensure that openxpki starts at boot time.
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
# openxpki_flags	(Set as needed)

openxpki_enable="${openxpki_enable-NO}"
openxpki_pidfile="%%PREFIX%%/var/openxpki/openxpki.pid"

case "$1" in 
    *start) command_args="start";;
esac

. /etc/rc.subr

name="openxpki"
rcvar=openxpki_enable
command="%%PREFIX%%/bin/openxpkictl"
procname="openxpkid"

load_rc_config $name

pidfile="${openxpki_pidfile}"

run_rc_command "$1"
OpenPOWER on IntegriCloud