poor man's init for Debian GNU/Hurd (10 lines)
Hi,
here is poor man's init for Debian GNU/Hurd. This will be in the next Hurd
Debian package, because it works well enough for now.
Thanks,
Marcus
--- libexec/rc Sat May 13 21:12:52 2000
+++ libexec/rc Wed Aug 9 23:22:17 2000
@@ -97,15 +97,17 @@
chmod 664 /etc/motd
-echo -n starting daemons:
+(
+ trap ":" INT QUIT TSTP
-/sbin/syslogd && echo -n ' syslogd'
-/sbin/inetd && echo -n ' inetd'
-
-if test -x /sbin/sendmail -a -r /etc/sendmail.cf; then
- /sbin/sendmail -bd -q30m && echo -n ' sendmail'
-fi
-
-echo .
+ if [ -d /etc/rc2.d ]
+ then
+ for i in /etc/rc2.d/S*
+ do
+ [ ! -f $i ] && continue
+ $i start
+ done
+ fi
+)
date
--
`Rhubarb is no Egyptian god.' Debian http://www.debian.org Check Key server
Marcus Brinkmann GNU http://www.gnu.org for public PGP Key
Marcus.Brinkmann@ruhr-uni-bochum.de, marcus@gnu.org PGP Key ID 36E7CD09
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/ brinkmd@debian.org
Reply to: