aboutsummaryrefslogtreecommitdiff
path: root/www/authelia/files
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2021-03-23 02:44:18 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2021-03-23 02:44:18 +0000
commitb55866adaffa5e55ee64ba6d35a07a176408b45c (patch)
tree4d8f7d4a8f30c2472cd26e25c14e096971c7c0cd /www/authelia/files
parentfe0fee4919324374c610dab77391eae4c1018bfe (diff)
downloadports-b55866adaffa5e55ee64ba6d35a07a176408b45c.tar.gz
ports-b55866adaffa5e55ee64ba6d35a07a176408b45c.zip
www/authelia: Add the rc script
Notes
Notes: svn path=/head/; revision=569006
Diffstat (limited to 'www/authelia/files')
-rw-r--r--www/authelia/files/authelia.in27
1 files changed, 27 insertions, 0 deletions
diff --git a/www/authelia/files/authelia.in b/www/authelia/files/authelia.in
new file mode 100644
index 000000000000..a7102a2802d9
--- /dev/null
+++ b/www/authelia/files/authelia.in
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: authelia
+# REQUIRE: DAEMON NETWORKING
+# KEYWORD: shutdown
+
+# Add the following lines to /etc/rc.conf to enable authelia:
+# authelia_enable : set to "YES" to enable the daemon, default is "NO"
+
+. /etc/rc.subr
+
+name=authelia
+rcvar=authelia_enable
+
+load_rc_config $name
+
+authelia_enable=${authelia_enable:-"NO"}
+
+logfile="/var/log/${name}.log"
+
+procname=%%PREFIX%%/bin/authelia
+command="/usr/sbin/daemon"
+command_args="-u %%USER%% -o ${logfile} -t ${name} %%PREFIX%%/bin/authelia --config %%PREFIX%%/etc/authelia.yml"
+
+run_rc_command "$1"