Add blimitd 0.1, a daemon to enforce login.conf limits.

PR:		29456
Submitted by:	Andrew Stevenson <andrew@ugh.net.au>
This commit is contained in:
Will Andrews
2001-12-19 02:55:21 +00:00
parent 924893ccba
commit 89eeaa809b
7 changed files with 71 additions and 0 deletions
+1
View File
@@ -14,6 +14,7 @@
SUBDIR += battstat-applet
SUBDIR += bchunk
SUBDIR += bkpupsd
SUBDIR += blimitd
SUBDIR += bubblemon-dockapp
SUBDIR += cd-write
SUBDIR += cd9660_unicode
+26
View File
@@ -0,0 +1,26 @@
# New ports collection makefile for: blimitd
# Date created: 29 Jul 2001
# Whom: Andrew Stevenson <andrew@ugh.net.au>
#
# $FreeBSD$
#
PORTNAME= blimitd
PORTVERSION= 0.1
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.ugh.net.au/pub/unix/blimitd/
MAINTAINER= andrew@ugh.net.au
WRKSRC= ${WRKDIR}/blimitd
MAN8= blimitd.8
MANCOMPRESSED= maybe
post-install:
@if [ ! -f ${PREFIX}/etc/rc.d/blimitd.sh ]; then \
${ECHO} "Installing ${PREFIX}/etc/rc.d/blimitd.sh startup file."; \
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/blimitd.sh ${PREFIX}/etc/rc.d/blimitd.sh; \
fi
.include <bsd.port.mk>
+1
View File
@@ -0,0 +1 @@
MD5 (blimitd-0.1.tar.gz) = 741d908fb43246322ba08434befe96b5
+34
View File
@@ -0,0 +1,34 @@
#!/bin/sh
# $FreeBSD$
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
echo "$0: Cannot determine the PREFIX" >&2
exit 1
fi
case $1 in
start)
[ -x ${PREFIX}/sbin/blimitd ] &&
echo -n ' blimitd' &&
${PREFIX}/sbin/blimitd
;;
stop)
[ -f /var/run/blimitd.pid ] &&
echo -n ' blimitd' &&
kill `cat /var/run/blimitd.pid`
;;
status)
if [ -f /var/run/blimitd.pid ]; then
ps -uxwwp `cat /var/run/blimitd.pid`
else
echo 'blimitd may not be running'
ps -auxww | grep blimitd | grep -v "($0|grep)"
;;
*)
echo "usage: `basename $0` {start|stop|status}" >&2
exit 64
;;
esac
exit 0
+1
View File
@@ -0,0 +1 @@
Daemon to enforce login.conf limits
+6
View File
@@ -0,0 +1,6 @@
This program is designed to enforce some of the user limits that can be
configured in login.conf. It currently only supports the idletime
capability.
Andrew Stevenson
andrew@ugh.net.au
+2
View File
@@ -0,0 +1,2 @@
etc/rc.d/blimitd.sh
sbin/blimitd