Created
December 17, 2019 17:14
-
-
Save dlangille/aefddbd87b493827ebe32bf00cf8e11c to your computer and use it in GitHub Desktop.
glewlwyd
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
[dan@webs02:/usr/local/etc/rc.d] $ cat glewlwyd | |
#!/bin/sh | |
# $FreeBSD$ | |
# PROVIDE: glewlwyd | |
# REQUIRE: LOGIN cleanvar | |
# KEYWORD: shutdown | |
# | |
# Add the following lines to /etc/rc.conf to enable glewlwyd: | |
# glewlwyd_enable (bool): Set to "NO" by default. | |
# Set it to "YES" to enable glewlwyd | |
# glewlwyd_configfile (str): Defaults to /usr/local/etc/glewlwyd/glewlwyd.conf | |
# | |
. /etc/rc.subr | |
name="glewlwyd" | |
rcvar=glewlwyd_enable | |
load_rc_config $name | |
: ${glewlwyd_enable:=NO} | |
: ${glewlwyd_configfile:=/usr/local/etc/glewlwyd/glewlwyd.conf} | |
required_files="${glewlwyd_configfile}" | |
glewlwyd_user="www" | |
glewlwyd_command="/usr/local/bin/glewlwyd" | |
glewlwyd_options="--config=${glewlwyd_configfile}" | |
pidfile="/var/run/${name}/${name}.pid" | |
command="/usr/sbin/daemon" | |
command_args="-P ${pidfile} -r -f ${glewlwyd_command} ${glewlwyd_options}" | |
echo $command $command_args | |
run_rc_command "$1" | |
[dan@webs02:/usr/local/etc/rc.d] $ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment