-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: svn+ssh://svn.freebsd.org/ports/head@569006 35697150-7ecd-e111-bb59-0022644237b5
- Loading branch information
yuri
committed
Mar 23, 2021
1 parent
ce255cf
commit d8e6623
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |