|
From: <and...@fr...> - 2006-06-08 13:49:31
|
I performed the following steps:
cd /etc/init.d
cp aaa bbb
vi bbb in order to modify occurrencies of aaa in bbb and other minor
issues:
sogeaste01:/etc/init.d # cat bbb
#!/bin/sh
### BEGIN INIT INFO
# Provides: bbb
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 5
# Description: start dummy bbb
### END INIT INFO
case "$1" in
'start')
/bin/echo "contents of dummyfile made by bbb on start" >
/tmp/dummybbb
;;
'stop')
/bin/echo "contents of dummyfile made by bbb on stop" >
/tmp/dummybbb
;;
*)
echo "Usage: $0 { start | stop }"
;;
esac
exit 0
at this point:
dir /etc/init.d/rc3.d -rt
.....
lrwxrwxrwx 1 root root 6 Jun 7 09:25 S07aaa -> ../aaa
lrwxrwxrwx 1 root root 6 Jun 7 09:25 K15aaa -> ../aaa
sogeaste01:/etc/init.d # chkconfig --add bbb
bbb 0:off 1:off 2:on 3:on 4:off 5:on 6:off
sogeaste01:/etc/init.d # chkconfig add on
add: unknown service
(perhaps a mispelled command ??????)
at this point:
dir /etc/init.d/rc3.d -rt
....
lrwxrwxrwx 1 root root 6 Jun 7 09:25 S07aaa -> ../aaa
lrwxrwxrwx 1 root root 6 Jun 7 09:25 K15aaa -> ../aaa
drwxr-xr-x 11 root root 2536 Jun 8 15:31 ..
lrwxrwxrwx 1 root root 6 Jun 8 15:31 S07bbb -> ../bbb
lrwxrwxrwx 1 root root 6 Jun 8 15:31 K15bbb -> ../bbb
dir /etc/init.d -rt
...
drwxr-xr-x 57 root root 4944 Jun 7 09:27 ..
-rwxr-xr-x 1 root root 451 Jun 7 09:35 aaa
-rwxr-xr-x 1 root root 450 Jun 8 15:31 bbb
drwxr-xr-x 11 root root 2536 Jun 8 15:31 .
drwxr-xr-x 2 root root 1616 Jun 8 15:31 rc5.d
drwxr-xr-x 2 root root 1440 Jun 8 15:31 rc3.d
drwxr-xr-x 2 root root 992 Jun 8 15:31 rc2.d
-rw-r--r-- 1 root root 1619 Jun 8 15:31 .depend.stop
-rw-r--r-- 1 root root 1561 Jun 8 15:31 .depend.start
-rw-r--r-- 1 root root 1216 Jun 8 15:31 .depend.boot
so .depend files where actually modified; rc3 links appear relative not
absolute; S and K were created;
on reboot the /tmp/dummybbb file exists and is properly populated (contents
of dummyfile made by bbb on start)
So everything seems to be OK
Running around webmin, I tried to enter into module config (of bootup and
shutdown) and I saw:
Use chkconfig command to enable actions? 0
what does it mean ? perhaps chkconfig is not used to anable actions ?
Andrea
"Jamie Cameron"
<jcameron@webmin.
com> To
Sent by: Webmin users list
webadmin-list-bou <web...@li...
nc...@li... t>
forge.net cc
Subject
07/06/2006 18.55 Re: [webmin-l] webmin problem to
startup services; further analisys
Please respond to
Webmin users list
<webadmin-list@li
sts.sourceforge.n
et>
Thanks for the debugging info ..
Actually, what I was really wondering is if the commands :
chkconfig --add aaa
chkconfig add on
when run as root from the command line creates the same symlinks and
.depend file entries as when you use YaST.
- Jamie
-
Forwarded by the Webmin mailing list at web...@li...
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
|