Date: Thu, 10 Dec 2020 04:59:40 +0000 (UTC) From: Alexey Dokuchaev <danfe@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r557412 - in head/sysutils/pies: . files Message-ID: <202012100459.0BA4xefw014585@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: danfe Date: Thu Dec 10 04:59:40 2020 New Revision: 557412 URL: https://svnweb.freebsd.org/changeset/ports/557412 Log: Add an rc script. Submitted by: maintainer Added: head/sysutils/pies/files/ head/sysutils/pies/files/pies.in (contents, props changed) Modified: head/sysutils/pies/Makefile Modified: head/sysutils/pies/Makefile ============================================================================== --- head/sysutils/pies/Makefile Thu Dec 10 04:35:50 2020 (r557411) +++ head/sysutils/pies/Makefile Thu Dec 10 04:59:40 2020 (r557412) @@ -3,6 +3,7 @@ PORTNAME= pies PORTVERSION= 1.4 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://download.gnu.org.ua/pub/release/${PORTNAME}/ \ http://download.gnu.org.ua/pub/alpha/${PORTNAME}/ @@ -14,6 +15,7 @@ LICENSE= GPLv3+ USES= charsetfix iconv tar:bz2 GNU_CONFIGURE= yes +USE_RC_SUBR= ${PORTNAME} INFO= ${PORTNAME} PORTDOCS= ChangeLog NEWS README Added: head/sysutils/pies/files/pies.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/pies/files/pies.in Thu Dec 10 04:59:40 2020 (r557412) @@ -0,0 +1,61 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: pies +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: shutdown +# + +. /etc/rc.subr + +name="pies" +rcvar=pies_enable +command="%%PREFIX%%/sbin/${name}" +ctlcommand="%%PREFIX%%/bin/${name}ctl" +pidfile="/var/run/${name}/${name}.pid" + +: ${pies_enable="NO"} + +start_cmd="${name}_start" +reload_cmd="${name}_reload" +restart_cmd="${name}_restart" +status_cmd="${name}_status" +stop_cmd="${name}_stop" +configtest_cmd="${name}_configtest" + +extra_commands="reload configtest" + +pies_start() +{ + ${command} +} + +pies_reload() +{ + ${ctlcommand} -v config reload +} + +pies_restart() +{ + ${ctlcommand} reboot +} + +pies_status() +{ + ${ctlcommand} -v list +} + +pies_stop() +{ + ${ctlcommand} shutdown +} + +pies_configtest() +{ + ${command} --lint +} + +load_rc_config ${name} +run_rc_command "$1"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012100459.0BA4xefw014585>