English | Magyar
JS ki | CSS ki | Ékezetek ki | HiContrast
Lapozó:  (0 - 1424) 
<== | ==>
Ugrás a végére | Összes megjelenítése | Utolsó oldal
OpenOpera patches | Opera-SSL patches | Opera 12.15 source (Git repository) | Opera 12.15 source (Torrent) | Opera internal pages | Otter Browser Linux x64 - Qt5.15.2/QtWebKit5.602.1 (2024.04.27. 20:05)
OS for MC680x0 | OS for PPC | OS for Sparc64 | besztofbégéaefcé | CSÉNDZSLOG | WebToolz | DDG Shit Filter | Google Shit Filter | Progz | Fast CSS Box | Browser | OS | Agent | Statisztika | BBCode
Monospace font-family: Courier New | Browser default monospace
Email értesítő / Email notification ===> 
Keresés
Σ: 1 post

TCH  (statz) Főfasz
#1, Főfasz (10443)
1703 | #5668 | ^ | Idézet | Sat, 03 Dec 2022 14:47:33 +01
84.236.*.* Linux x86 Opera Classic Hungary *.pool.digikabel.hu
Hogy futtatsz le egy scriptet boot-kor? Beleírod az /etc/rc.local file-ba, az exit 0 elé valahová és kész.
És shutdown-kor/reboot-kor? Na, erre mire rájöttem, bazdmeg...

A neten mindenütt azt írják, hogy fogd a script-edet, kúrd be az /etc/init.d könyvtárba, majd
chmod 755 /etc/init.d/scriptname
ln -s /etc/init.d/scriptname /etc/rc0.d/K01scriptname # shutdown-hoz
ln -s /etc/init.d/scriptname /etc/rc6.d/K01scriptname # reboot-hoz
Na ez az, ami nem működik. És nem, nem azért, mert a /var/lock/subsys/scriptname file nem létezik, amikor reboot-ot/shutdown-t nyomsz és ezért nem futtatja le.

Helyes megoldás (legalábbis Debian alapú rendszerek alatt):
#!/bin/sh
### BEGIN INIT INFO
# Provides:          scriptname
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:      0 6
# Short-Description: Mindegy...
# Description: Mindegy...
### END INIT INFO

/path/to/scriptname # vagy bebaszhatod a script tartalmát is ide...

exit 0
Na, ezt kell bekúrni az /etc/init.d-be scriptname néven (a lényeg, hogy a script neve megegyezzen a "Provides" LSB mező tartalmával), utána pedig
chkconfig --level 06 scriptname on
Nem kell foglalkozni vele, hogy azt írja chkconfig --list scriptname parancsra, hogy mindegyik level-en off, az /etc/rc0.d/K01scriptname és /etc/rc6.d/K01scriptname fájlokat létrehozta és azt is belőtte, amit még kellett, mert így működik. (Sajnos nem tudom mit állított még be, mert a chkconfig Perl-ben van írva és People Hate Perl én azon a nyelven nem "beszélek"...)


English | Magyar
JS ki | CSS ki | Ékezetek ki | HiContrast
Lapozó:  (0 - 1424) 
<== | ==>
Ugrás a végére | Összes megjelenítése | Utolsó oldal
OpenOpera patches | Opera-SSL patches | Opera 12.15 source (Git repository) | Opera 12.15 source (Torrent) | Opera internal pages | Otter Browser Linux x64 - Qt5.15.2/QtWebKit5.602.1 (2024.04.27. 20:05)
OS for MC680x0 | OS for PPC | OS for Sparc64 | besztofbégéaefcé | CSÉNDZSLOG | WebToolz | DDG Shit Filter | Google Shit Filter | Progz | Fast CSS Box | Browser | OS | Agent | Statisztika | BBCode
Monospace font-family: Courier New | Browser default monospace
Email értesítő / Email notification ===> 
Keresés

Név: (max 255 byte)

Email: (max 255 byte) Nem kötelező!

Üzenet: (max 65536 kar.) 65536-0=65536




crap_vkn v4.34.0 by TCH
Thx to saxus for the escaped string decoder function (PHP), the realIP function (PHP) & the SQL handle layer (PHP), to thookerov for the int_divide function (PHP), to Jeff Anderson for the getSelText function (JS), to Alex King for the insertAtCursor function (JS), Flood3r for the new CSS styles, Pety for the spamprotection idea and some design and comfort ideas, MaxMind for the IP2Country database, famfamfam for the flags of countries and an unknown PHP programmer for the removeAccents function.



Kecskebaszók ide!