View | Details | Raw Unified | Return to bug 213707
Collapse All | Expand All

(-)cbsd/Makefile (-1 / +2 lines)
Lines 1-7 Link Here
1
# $FreeBSD: head/sysutils/cbsd/Makefile 424311 2016-10-20 08:40:27Z vg $
1
# $FreeBSD: head/sysutils/cbsd/Makefile 423966 2016-10-14 13:26:37Z vg $
2
2
3
PORTNAME=	cbsd
3
PORTNAME=	cbsd
4
PORTVERSION=	11.0.4
4
PORTVERSION=	11.0.4
5
PORTREVISION=	1
5
CATEGORIES=	sysutils
6
CATEGORIES=	sysutils
6
7
7
MAINTAINER=	olevole@olevole.ru
8
MAINTAINER=	olevole@olevole.ru
(-)cbsd/files/cbsdd.in (-2 / +20 lines)
Lines 48-53 Link Here
48
start_precmd=${name}_prestart
48
start_precmd=${name}_prestart
49
stop_precmd=${name}_prestop
49
stop_precmd=${name}_prestop
50
stop_cmd=${name}_stop
50
stop_cmd=${name}_stop
51
status_cmd="${name}_status"
51
reload_cmd=${name}_reload
52
reload_cmd=${name}_reload
52
extra_commands="reload"
53
extra_commands="reload"
53
54
Lines 79-92 Link Here
79
80
80
cbsdd_stop()
81
cbsdd_stop()
81
{
82
{
82
	[ -f "${pidfile}" ] && kill -9 $( /bin/cat ${pidfile} )
83
	if [ -f "${pidfile}" ]; then
84
		kill -9 $( /bin/cat ${pidfile} )
85
		/bin/rm -f ${pidfile}
86
	fi
83
}
87
}
84
88
85
cbsdd_reload()
89
cbsdd_reload()
86
{
90
{
87
	[ -f "${pidfile}" ] && kill -9 $( /bin/cat ${pidfile} ) > /dev/null 2>&1
91
	if [ -f "${pidfile}" ]; then
92
		kill -9 $( /bin/cat ${pidfile} ) > /dev/null 2>&1
93
		/bin/rm -f ${pidfile}
94
	fi
88
	run_rc_command "start"
95
	run_rc_command "start"
89
	exit 0
96
	exit 0
90
}
97
}
91
98
99
cbsdd_status()
100
{
101
	if [ -f "${pidfile}" ]; then
102
		pids=$( /bin/cat ${pidfile} )
103
		echo "${name} is running as pid ${pids}."
104
	else
105
		echo "${name} is not running."
106
		return 1
107
	fi
108
}
109
92
run_rc_command "$1"
110
run_rc_command "$1"

Return to bug 213707