From 795213558857bb09d380f49f011a442a029d33c2 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sun, 6 Jan 2019 15:43:10 -0500 Subject: Add kfcgi rc file --- Makefile | 5 +++-- rc.kfcgi | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 rc.kfcgi diff --git a/Makefile b/Makefile index 8059b83..72959ff 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ image.o: png.h tags: *.h *.c ctags -w *.h *.c -chroot.tar: client image server +chroot.tar: client image server default8x16.psfu install -d -o root -g wheel \ root \ root/bin \ @@ -41,8 +41,9 @@ chroot.tar: client image server install -m 644 default8x16.psfu root/usr/share/torus tar -cf chroot.tar -C root bin home usr var -install: chroot.tar rc.torus +install: chroot.tar rc.kfcgi rc.torus tar -xf chroot.tar -C /home/$(CHROOT_USER) + install rc.kfcgi /usr/local/etc/rc.d/kfcgi install rc.torus /usr/local/etc/rc.d/torus clean: diff --git a/rc.kfcgi b/rc.kfcgi new file mode 100644 index 0000000..6baa122 --- /dev/null +++ b/rc.kfcgi @@ -0,0 +1,18 @@ +#!/bin/sh + +# PROVIDE: kfcgi +# REQUIRE: LOGIN +# KEYWORD: shutdown + +. /etc/rc.subr + +name=kfcgi +rcvar=kfcgi_enable +load_rc_config ${name} + +: ${kfcgi_enable:=NO} +kfcgi_flags="${kfcgi_flags} -- ${kfcgi_prog}" + +command=/usr/local/sbin/kfcgi + +run_rc_command "$1" -- cgit 1.4.1 f675dd9853b0f6c8f&follow=1'>diff
path: root/bin (unfollow)
Commit message (Collapse)Author
2018-09-07Add modem.1June McEnroe
2018-09-07Add klon.6June McEnroe
2018-09-07Pass "command ..." as one string to ArJune McEnroe