X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=init.mk;fp=init.mk;h=81c14870fc1cce24ad4af6decde04af800cc39b8;hb=9dbffaa9fcf78a81968865e371abfb978a8b8168;hp=0000000000000000000000000000000000000000;hpb=814a952820e7406ae1e4327799841ef9c403ad59;p=mkinit diff --git a/init.mk b/init.mk new file mode 100644 index 0000000..81c1487 --- /dev/null +++ b/init.mk @@ -0,0 +1,28 @@ +# Copyright (C) 2009-2010 Andy Spencer +# See COPYING for terms + +# Config +MKSHELL=/usr/lib/plan9/bin/rc +NPROC=10 + +hostname-opts = c +apache2-opts = -DSSL -DPHP5 + +# Runlevels: +# single─bare─system─┬─desktop─> +# └─server──> +server = apache2 courier dhcp mysql spamd tor +desktop = alsa cups dbus getty qingy keymap polipo +system = at cron hddtemp hwclock sshd swap syslog +bare = cpufreq fsclean hostname initctl localhost modules mounts uevents utmp + +default:V: desktop + +server:V: `{echo $server^-start $system^-start $bare^-start} +desktop:V: `{echo $desktop^-start $system^-start $bare^-start} +system:V: `{echo $server^-stop $desktop^-stop $system^-start $bare^-start} +bare:V: `{echo $server^-stop $desktop^-stop $system^-stop $bare^-start} +single:V: `{echo $server^-stop $desktop^-stop $system^-stop $bare^-stop } + +# Include services +