[crisos] Running script at boottime

[ Thread Index | Date Index | More lists.tuxfamily.org/crisos Archives ]


Thank you Holger for your improvement on boottime documentation.
I also like to invite you to see
http://www.crisos.org/dokuwiki/doku.php?id=documentation:faq&rev=1239087274&do=diff
for the use of start/stop function inside boot scripts.

Best Regards
Claudio

---------- Forwarded message ----------
From:  <claudyus@xxxxxxxxxxxxx>
Date: 2009/4/7
Subject: [CrisOs] page changed: documentation:faq
To: claudyus84@xxxxxxxxx


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2009/04/07 06:43
Browser     : Mozilla/5.0 (OS/2; U; Warp 4.5; de-AT; rv:1.7.3) Gecko/20040918
IP-Address  :
Hostname    :
Old Revision: http://www.crisos.org/dokuwiki/doku.php?id=documentation:faq&rev=1231170697
New Revision: http://www.crisos.org/dokuwiki/doku.php?id=documentation:faq
Edit Summary: Deteiled description for enabling startup script included
User        :

@@ -37,8 +37,25 @@


 ==== Running command/script at boottime ====
 You can insert your command/script inside
**/etc/init.d/custom-user-startup**, remember to end a background
command with &.
+ In detail you need to do following steps:
+
+   - Goto subdirectory **/etc/init.d** and create script file
**custom-user-startup** (e.g using **vi**)
+   - Include your commands into the script, here is an example:
+ <code>
+ #!/bin/sh /etc/rc.common
+ START=50
+ #
+ /usr/sbin/ser2net &
+ </code>
+   - Make script executable by **chmod 755**
+   - "Register" the script file by running following command:
**/etc/init.d/custom-user-startup enable**
+   - After that in **/etc/rc.d**, there must be a file which
references to custom-user-startup e.g.
+ <code>
+ lrwxrwxrwx    1 root     root           29 Jan  1 00:03
S50custom-user-startup -> ../init.d/custom-user-startup
+ </code>
+   - After reboot check by **ps**, the startup script was executed
(for example the process //ser2net//'' must be shown)

 ===== DarwinFox =====
 Known issues for DarwinFox release.
 ==== Opkg don't work ====



--
This mail was generated by DokuWiki at
http://www.crisos.org/dokuwiki/

---
CrisOs mailing list
Official multi-language http://www.crisos.org/ mailing list

For unsubscribe send empty mail to: crisos-request@xxxxxxxxxxxxxxxxxxx with subject unsubscribe.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/