1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/sysutils/py-salt/files/salt_api.in
Jason Unovitch 46cc6a938d sysutils/py-salt: add new rc scripts, clean up current scripts
- Add salt-proxy.in and associated pkg-message text for Salt Proxy
- Restore installation of salt-api.in accidentally removed in r396791
- Set a default for PATH to address upstream issue 27151
- While here, make headers more verbose and trim variable quotes per rclint

PR:		203262
Submitted by:	Christer Edwards <christer.edwards@gmail.com> (maintainer)
2015-09-27 14:32:04 +00:00

32 lines
560 B
Bash

#!/bin/sh
# $FreeBSD$
#
# Salt API startup script
#
# PROVIDE: salt_api
# REQUIRE: LOGIN
# KEYWORD: shutdown
# Add the following to /etc/rc.conf[.local] to enable this service
#
# salt_api_enable (bool): Set to NO by default.
# Set it to YES to enable salt_api
#
. /etc/rc.subr
name=salt_api
rcvar=salt_api_enable
load_rc_config ${name}
: ${salt_api_enable:=NO}
command="%%PREFIX%%/bin/salt-api"
command_interpreter="%%PYTHON_CMD%%"
required_files="%%PREFIX%%/etc/salt"
command_args="-c ${required_files} -d"
run_rc_command "$1"