Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Aphorismen
Applications
Business Economics & Admin.
My Computers
Cooking
Devices
Folders
Food
Hardware
Infos
Software Development
Sports
Operation Instructions
Todos
Test
Help
Glossary
Community portal
adaptions
Sidebar anpassen
Wiki RB4
Search
Search
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Linux
(section)
Page
Discussion
English
Read
Edit
View history
Toolbox
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Dämonen/Services=== Als Dämonen (daemon) werden Hintergrundprozesse zur Systemverwaltung bezeichnet. Sie werden bereits während des Hochfahrens des Rechners im Rahmen des Init-V-Prozesses gestartet und sind einem bestimmten [[#Runlevel|runlevel]] zugeordnet. ====Init Scripts==== Jeder Dienst besitzt ein Start-/Stop-Skript im Verzeichnis /etc/init.d. Entfernen eines Dienstes: '''sudo update-rc.d -f <Skript> remove''' Einfügen eines Dienstes: '''sudo update-rc.d pcmciautils defaults''' [<Number>)] Das Kommando erzeugt bestimmte Links nach folgendem Muster: '''/etc/rc'''<RunLevel>'''.d/'''('''K'''|'''S''')<Number><ServiceName> --> '''../init.d/'''<ServiceName> '''K''' steht für kill und '''S''' steht für start. defaults erzeugt kill Einträge für die Level 0,1,6 und start Einträge für die Level 2,3,4,5. Kleiner Nummern werden vor größeren Nummern gestartet und nach größeren Nummern gekillt. In den Skripts werden Standardfunktionen verwendet z.B. log_daemon_msg, die in /etc/lsb-base-logging.sh definiert sind. Der Output dieser Funktion ist unklar, daher kann man sie anpassen z.B. mit echo "$(date) $<ENV_VAR_NAME> ..." >> /var/log/uwes.log =====Include own scripts===== Unter Ubuntu Kommandos in /etc/rc.local eintragen. ====Upstart==== Ubuntu has upstart as a replacement of [[#Init_Scripts|init scripts]] since 2006, but it hasn't been used since 9.10. Whether it has been installed can be checked by test existing initctl command. Upstart uses *.conf in the /etc/init directory. You can run these scripts using the start/stop/status <servicename without conf> commands which are shortcuts to initctl [start|stop|status] <servicename without conf> or list all services by initclt list ====Cron==== Cron ist ein Dämon zum automatischen Programmstart. Cron prüft jede Minute die crontab-Dateien und startet die dort angegebenen Programme. Die globale Konfiguration erfolgt über /etc/crontab. Bei fast allen gängigen Linux-Distributionen man die persönliche crontab verändern, indem man den Befehl <code>crontab -e</code> eingibt. Dann erscheint ein voreingestellter Editor (z.B vim) und zeigt u.U eine leere Datei, wenn noch keine crontab vorhanden ist. Die Datei einhält folgende Einträge in einer Zeile {| border=1 cellpadding=2 cellspacing=0 |- |Minute |0-59 |- |Stunde |0-23 |- |Tag |1-12 |- |Wochentag |0-6, wobei 0 Sonntag ist |- |Befehl |<Befehl> <Argument> |} Mehrere Einträge werden durch ein Komma getrennt, * bedeutet egal ====Process Analysis and Control==== [[LinuxCommands#pstree|pstree]] [-p // includes process id] [-a // cmd line] [-c // expand identical subtrees] ps -aux cat /proc/<PID>/cmdline pgrep -u <User> -l -a // e.g. root
Summary:
Please note that all contributions to Wiki RB4 may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Uwe Heuer Wiki New:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Toggle limited content width