diff options
author | adrianp <adrianp> | 2004-12-21 22:16:01 +0000 |
---|---|---|
committer | adrianp <adrianp> | 2004-12-21 22:16:01 +0000 |
commit | 1b18e3b22369126ff7fa6b10d82785db49f05df4 (patch) | |
tree | 8bf217dd886399ce18671a38f1807b79c1ae8dba /net/freeradius/files | |
parent | 1059cd6d69cb1c4bec5454111d9f7b90e6f080c3 (diff) | |
download | pkgsrc-1b18e3b22369126ff7fa6b10d82785db49f05df4.tar.gz |
- Fix freeradius not starting because of missing directory cleaned out at
reboot.
- Issue spotted and patch sent to me from kbrand (at) dplanet.ch, thanks.
- Bumped PKGREVISION
Diffstat (limited to 'net/freeradius/files')
-rw-r--r-- | net/freeradius/files/radiusd.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/net/freeradius/files/radiusd.sh b/net/freeradius/files/radiusd.sh index c434a21396d..6190cfe04c8 100644 --- a/net/freeradius/files/radiusd.sh +++ b/net/freeradius/files/radiusd.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: radiusd.sh,v 1.2 2004/09/23 19:51:22 adrianp Exp $ +# $NetBSD: radiusd.sh,v 1.3 2004/12/21 22:16:01 adrianp Exp $ # # PROVIDE: radiusd # REQUIRE: network @@ -14,6 +14,16 @@ fi name="radiusd" command="@PREFIX@/sbin/radiusd" pidfile="@VARBASE@/run/radiusd/radiusd.pid" +start_precmd="radiusd_precmd" + +radiusd_precmd() +{ + if [ ! -d @VARBASE@/run/radiusd ]; then + @MKDIR@ @VARBASE@/run/radiusd + @CHMOD@ 0750 @VARBASE@/run/radiusd + @CHOWN@ root:wheel @VARBASE@/run/radiusd + fi +} if [ -f /etc/rc.subr ] then |