Raptor updates
parent
5400dc645a
commit
c40c43c1a7
|
@ -6,33 +6,29 @@ IN: raptor
|
||||||
|
|
||||||
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
|
||||||
: run-script ( path -- ) 1array [ fork-exec-args-wait ] curry in-thread ;
|
|
||||||
|
|
||||||
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
||||||
|
|
||||||
[
|
[
|
||||||
"/etc/cron.daily/apt" run-script
|
"/etc/cron.daily/apt" fork-exec-arg
|
||||||
"/etc/cron.daily/aptitude" run-script
|
"/etc/cron.daily/aptitude" fork-exec-arg
|
||||||
"/etc/cron.daily/bsdmainutils" run-script
|
"/etc/cron.daily/bsdmainutils" fork-exec-arg
|
||||||
"/etc/cron.daily/find.notslocate" run-script
|
"/etc/cron.daily/find.notslocate" fork-exec-arg
|
||||||
"/etc/cron.daily/logrotate" run-script
|
"/etc/cron.daily/logrotate" fork-exec-arg
|
||||||
"/etc/cron.daily/man-db" run-script
|
"/etc/cron.daily/man-db" fork-exec-arg
|
||||||
"/etc/cron.daily/ntp-server" run-script
|
"/etc/cron.daily/ntp-server" fork-exec-arg
|
||||||
"/etc/cron.daily/slocate" run-script
|
"/etc/cron.daily/slocate" fork-exec-arg
|
||||||
"/etc/cron.daily/standard" run-script
|
"/etc/cron.daily/standard" fork-exec-arg
|
||||||
"/etc/cron.daily/sysklogd" run-script
|
"/etc/cron.daily/sysklogd" fork-exec-arg
|
||||||
"/etc/cron.daily/tetex-bin" run-script
|
"/etc/cron.daily/tetex-bin" fork-exec-arg
|
||||||
] cron-jobs-daily set-global
|
] cron-jobs-daily set-global
|
||||||
|
|
||||||
[
|
[
|
||||||
"/etc/cron.weekly/cvs" run-script
|
"/etc/cron.weekly/cvs" fork-exec-arg
|
||||||
"/etc/cron.weekly/man-db" run-script
|
"/etc/cron.weekly/man-db" fork-exec-arg
|
||||||
"/etc/cron.weekly/ntp-server" run-script
|
"/etc/cron.weekly/ntp-server" fork-exec-arg
|
||||||
"/etc/cron.weekly/popularity-contest" run-script
|
"/etc/cron.weekly/popularity-contest" fork-exec-arg
|
||||||
"/etc/cron.weekly/sysklogd" run-script
|
"/etc/cron.weekly/sysklogd" fork-exec-arg
|
||||||
] cron-jobs-weekly set-global
|
] cron-jobs-weekly set-global
|
||||||
|
|
||||||
[
|
[
|
||||||
"/etc/cron.monthly/scrollkeeper" run-script
|
"/etc/cron.monthly/scrollkeeper" fork-exec-arg
|
||||||
"/etc/cron.monthly/standard" run-script
|
"/etc/cron.monthly/standard" fork-exec-arg
|
||||||
] cron-jobs-monthly set-global
|
] cron-jobs-monthly set-global
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
USING: kernel parser namespaces threads sequences unix unix.process
|
USING: kernel parser namespaces threads arrays sequences unix unix.process
|
||||||
combinators.cleave bake ;
|
combinators.cleave bake ;
|
||||||
|
|
||||||
IN: raptor
|
IN: raptor
|
||||||
|
@ -24,6 +24,8 @@ SYMBOL: networking-hook
|
||||||
|
|
||||||
: fork-exec-args-wait ( args -- ) [ first ] [ ] bi fork-exec-wait ;
|
: fork-exec-args-wait ( args -- ) [ first ] [ ] bi fork-exec-wait ;
|
||||||
|
|
||||||
|
: fork-exec-arg ( arg -- ) 1array [ fork-exec-args-wait ] curry in-thread ;
|
||||||
|
|
||||||
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
|
||||||
: forever ( quot -- ) [ call ] [ forever ] bi ;
|
: forever ( quot -- ) [ call ] [ forever ] bi ;
|
||||||
|
|
|
@ -32,6 +32,12 @@ another Linux distribution.
|
||||||
|
|
||||||
# cp -v /scratch/factor/factor.image /sbin/init.image
|
# cp -v /scratch/factor/factor.image /sbin/init.image
|
||||||
|
|
||||||
|
*** Filesystems ***
|
||||||
|
|
||||||
|
# emacs /etc/raptor/config.factor
|
||||||
|
|
||||||
|
Edit the root-device and swap-devices variables.
|
||||||
|
|
||||||
*** Static IP networking ***
|
*** Static IP networking ***
|
||||||
|
|
||||||
If you use a static IP in your network then Factor can take care of
|
If you use a static IP in your network then Factor can take care of
|
||||||
|
@ -71,6 +77,8 @@ The items in boot-hook correspond to the things in '/etc/rcS.d' and
|
||||||
example, I removed the printer services. I also removed other things
|
example, I removed the printer services. I also removed other things
|
||||||
that I didn't feel were necessary on my system.
|
that I didn't feel were necessary on my system.
|
||||||
|
|
||||||
|
Look for the line with the call to 'set-hostname' and edit it appropriately.
|
||||||
|
|
||||||
*** Grub ***
|
*** Grub ***
|
||||||
|
|
||||||
Edit your '/boot/grub/menu.lst'. Basically, copy and paste your
|
Edit your '/boot/grub/menu.lst'. Basically, copy and paste your
|
Loading…
Reference in New Issue