Added the freebsd service check daemon.
Originally developed by Tom Rhodes for FreeBSD, it's ported to NetBSD now and maintained by me. https://vcs.in-berlin.de/schrank21_fscd
This commit is contained in:
parent
a94dd6880f
commit
981df91772
5 changed files with 72 additions and 0 deletions
7
sysutils/fscd/DESCR
Normal file
7
sysutils/fscd/DESCR
Normal file
|
@ -0,0 +1,7 @@
|
|||
fscd (FreeBSD service check daemon) is a daemon that monitors and checks the
|
||||
status of running services started by rc(8). It connects to started services via
|
||||
kqueue(2) and will be noticed when the service terminates, trying to restart it
|
||||
via service(8).
|
||||
|
||||
fscd is controlled with the fscadm(8) utility to enable and disable service
|
||||
monitoring.
|
30
sysutils/fscd/Makefile
Normal file
30
sysutils/fscd/Makefile
Normal file
|
@ -0,0 +1,30 @@
|
|||
# $NetBSD: Makefile,v 1.1 2012/05/03 21:21:58 jdf Exp $
|
||||
#
|
||||
|
||||
DISTNAME= fscd-1.0
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://komkon2.de/
|
||||
|
||||
MAINTAINER= jdf@NetBSD.org
|
||||
HOMEPAGE= https://vcs.in-berlin.de/schrank21_fscd
|
||||
COMMENT= FreeBSD service check daemon to monitor services
|
||||
LICENSE= 2-clause-bsd
|
||||
|
||||
PKG_DESTDIR_SUPPORT= user-destdir
|
||||
CPPFLAGS+= -DSYSCONFDIR=\"${PKG_SYSCONFDIR}/\"
|
||||
# Only for platforms with kqueue.
|
||||
ONLY_FOR_PLATFORM= NetBSD-[2-9].*-* FreeBSD-[4-9].*-* OpenBSD-*-* DragonFly-*-* Darwin-*-*
|
||||
|
||||
RCD_SCRIPTS= fscd
|
||||
INSTALLATION_DIRS= bin sbin ${PKGMANDIR}/man5 ${PKGMANDIR}/man8
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/fscadm/fscadm ${DESTDIR}${PREFIX}/sbin
|
||||
${INSTALL_DATA} ${WRKSRC}/fscadm/fscadm.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/fscd/fscd ${DESTDIR}${PREFIX}/sbin
|
||||
${INSTALL_DATA} ${WRKSRC}/fscd/fscd.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
|
||||
${INSTALL_DATA} ${WRKSRC}/fscd/fscd.conf.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/service/service ${DESTDIR}${PREFIX}/sbin
|
||||
${INSTALL_DATA} ${WRKSRC}/service/service.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
|
||||
|
||||
.include "../../mk/bsd.pkg.mk"
|
9
sysutils/fscd/PLIST
Normal file
9
sysutils/fscd/PLIST
Normal file
|
@ -0,0 +1,9 @@
|
|||
@comment $NetBSD: PLIST,v 1.1 2012/05/03 21:21:58 jdf Exp $
|
||||
man/man5/fscd.conf.5
|
||||
man/man8/fscadm.8
|
||||
man/man8/fscd.8
|
||||
man/man8/service.8
|
||||
sbin/fscadm
|
||||
sbin/fscd
|
||||
sbin/service
|
||||
share/examples/rc.d/fscd
|
5
sysutils/fscd/distinfo
Normal file
5
sysutils/fscd/distinfo
Normal file
|
@ -0,0 +1,5 @@
|
|||
$NetBSD: distinfo,v 1.1 2012/05/03 21:21:58 jdf Exp $
|
||||
|
||||
SHA1 (fscd-1.0.tar.gz) = 4d88568605bb424e236321805369961616ac74c6
|
||||
RMD160 (fscd-1.0.tar.gz) = b5755d163384df1818756e1252fa5364e7923aa2
|
||||
Size (fscd-1.0.tar.gz) = 13432 bytes
|
21
sysutils/fscd/files/fscd.sh
Executable file
21
sysutils/fscd/files/fscd.sh
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $Id: fscd.sh,v 1.1 2012/05/03 21:21:58 jdf Exp $
|
||||
#
|
||||
# Startup script for service monitoring daemon.
|
||||
#
|
||||
|
||||
# PROVIDE: fscd
|
||||
# REQUIRE: DAEMON syslogd
|
||||
# BEFORE: NETWORKING LOGIN
|
||||
# KEYWORD: shutdown
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="fscd"
|
||||
rcvar=${name}
|
||||
pidfile="/var/run/${name}.pid"
|
||||
command="@PREFIX@/sbin/${name}"
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
Loading…
Reference in a new issue