Browse Source

Add kfcgi rc file

Causal Agent 2 months ago
parent
commit
7952135588
Signed by: Curtis McEnroe <june@causal.agency> GPG Key ID: CEA2F97ADCFCD77C
2 changed files with 21 additions and 2 deletions
  1. 3
    2
      Makefile
  2. 18
    0
      rc.kfcgi

+ 3
- 2
Makefile View File

@@ -24,7 +24,7 @@ image.o: png.h
24 24
 tags: *.h *.c
25 25
 	ctags -w *.h *.c
26 26
 
27
-chroot.tar: client image server
27
+chroot.tar: client image server default8x16.psfu
28 28
 	install -d -o root -g wheel \
29 29
 		root \
30 30
 		root/bin \
@@ -41,8 +41,9 @@ chroot.tar: client image server
41 41
 	install -m 644 default8x16.psfu root/usr/share/torus
42 42
 	tar -cf chroot.tar -C root bin home usr var
43 43
 
44
-install: chroot.tar rc.torus
44
+install: chroot.tar rc.kfcgi rc.torus
45 45
 	tar -xf chroot.tar -C /home/$(CHROOT_USER)
46
+	install rc.kfcgi /usr/local/etc/rc.d/kfcgi
46 47
 	install rc.torus /usr/local/etc/rc.d/torus
47 48
 
48 49
 clean:

+ 18
- 0
rc.kfcgi View File

@@ -0,0 +1,18 @@
1
+#!/bin/sh
2
+
3
+# PROVIDE: kfcgi
4
+# REQUIRE: LOGIN
5
+# KEYWORD: shutdown
6
+
7
+. /etc/rc.subr
8
+
9
+name=kfcgi
10
+rcvar=kfcgi_enable
11
+load_rc_config ${name}
12
+
13
+: ${kfcgi_enable:=NO}
14
+kfcgi_flags="${kfcgi_flags} -- ${kfcgi_prog}"
15
+
16
+command=/usr/local/sbin/kfcgi
17
+
18
+run_rc_command "$1"

Loading…
Cancel
Save