The submitter points out that this service doesn't start because it relies
on the database to be up first, which given the previous REQUIRE line could only have happened by accident. So change the REQUIRE to LOGIN, which matches how we like ports scripts to run generally, and add postgresql mysql. While I'm here: 1. Add a $FreeBSD$ 2. Add KEYWORD: shutdown 3. Sort the structure to be more standard 4. Move the obviously non-optional flags to command_args Bump PORTREVISION to reflect these changes. Submitted by: ÐаÑнаков ÐиÑилл <kiril@varnakov.net>
This commit is contained in:
parent
9e4f22b0de
commit
e41bdfdd65
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=299453
2 changed files with 10 additions and 8 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
PORTNAME= prelude-lml
|
||||
PORTVERSION= 0.9.15
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= http://www.prelude-technologies.com/download/releases/${PORTNAME}/
|
||||
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
# $FreeBSD$
|
||||
#
|
||||
# PROVIDE: prelude_lml
|
||||
# REQUIRE: NETWORKING SERVERS
|
||||
# REQUIRE: LOGIN postgresql mysql
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
||||
# to enable this service:
|
||||
|
@ -9,19 +12,18 @@
|
|||
# prelude_lml_enable (bool): Set to NO by default.
|
||||
# Set it to YES to enable Prelude LML.
|
||||
# prelude_lml_flags (flags): Set arguments to use with Prelude LML
|
||||
#
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="prelude_lml"
|
||||
rcvar=prelude_lml_enable
|
||||
|
||||
command=%%PREFIX%%/bin/prelude-lml
|
||||
pidfile=/var/run/prelude-lml.pid
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${prelude_lml_enable="NO"}
|
||||
: ${prelude_lml_flags="-d -P ${pidfile}"}
|
||||
: ${prelude_lml_enable:="NO"}
|
||||
|
||||
command=%%PREFIX%%/bin/prelude-lml
|
||||
pidfile=/var/run/prelude-lml.pid
|
||||
command_args="-d -P $pidfile"
|
||||
|
||||
run_rc_command "$1"
|
||||
|
|
Loading…
Reference in a new issue