Automating Linux App Startup

Size: px
Start display at page:

Download "Automating Linux App Startup"

Transcription

1 Automating Linux App Startup David Boyes Sine Nomine Associates Agenda Runlevels, init, and symlinks, oh, my! Sequence of events during startup A sample application startup script Caveats on insserv, yast and friends Q&A (if we have time)

2 Why Do This? Like any other production system, applications need to start at boot time without human intervention. Presentation spawned by a discussion in the Hillgang (and later the Linux-390) mailing list in early October Linux (and Unix) Startup Bootstrap loader for specific HW (stage1) 3card loader Stage 2 loader (grub, zilo, lilo) Kernel (vmunix) Init Runlevel scripts

3 Runlevels 0 = halt 1/S = single user 2 = single user with network 3 = multiuser with network, no graphics 4 = reserved for future use 5 = multiuser with network, graphical 6 = shutdown/reboot 7-9 = reserved for future use init Always process 1 (careful with job control!) Two variations: System V and BSD Linux is System V based Solaris and AIX are SysV FreeBSD can be either (sysvinit package)

4 BSD init /etc/rc.boot /etc/rc.local /etc/rc.<n> Difficult to manage for complex environment Sys V init Mostly compatible at a high level /etc/rc.boot /etc/rc.local New: /etc/init.d/ /etc/init.d/rc<x>.d/

5 Sys V init Startup scripts go in /etc/init.d Symlinks built in /etc/rc<x>.d Snn<scriptname> /etc/init.d/<scriptname> Knn<scriptname> /etc/init.d/<scriptname> Both symlinks point to the same physical file Script called with different arguments to determine function SysV init Scripts executed in numerical order on entry and exit from runlevel: Eg, S01xxx before S02xxx Scripts at same number are executed in alphabetic order (S01able before S01baker, etc) Called with start Kxx scripts called on exit from runlevel Called with stop parameter

6 SysV init SuSE and RH use numbering to force prereq management and startup sequencing Prereq/sequence checking based on magic header in file Automated tools will renumber things caution! Scripts without magic headers are assigned S01 THIS MAY MAKE YOUR SYSTEM UNBOOTABLE! Header #! /bin/sh ### BEGIN INIT INFO # Provides: sshd # Required-Start: $network # Required-Stop: $network # Default-Start: 3 5 # Default-Stop: # Description: Start the sshd daemon ### END INIT INFO. /etc/rc.status. /etc/sysconfig/ssh

7 Script Header, Cont. # Shell functions sourced from /etc/rc.status: # rc_check check and set local and overall rc status # rc_status check and set local and overall rc status # rc_status -v ditto but be verbose in local rc status # rc_status -v -r ditto and clear the local rc status # rc_failed set local and overall rc status to failed # rc_reset clear local rc status (overall remains) # rc_exit exit appropriate to overall rc status # First reset status of this service rc_reset #!/bin/bash # Script Header (RH) # xinetd This starts and stops xinetd. # # chkconfig: # description: xinetd is a powerful replacement for inetd. \ # [ text omitted..] # processname: /usr/sbin/xinetd # config: /etc/sysconfig/network # config: /etc/xinetd.conf # pidfile: /var/run/xinetd.pid PATH=/sbin:/bin:/usr/bin:/usr/sbin # Source function library.. /etc/init.d/functions

8 Samples Start with the working versions in /etc/init.d. man init.d Don t try to manipulate the links manually case "$1" in start) if! test -f /etc/ssh/ssh_host_key ; then echo Generating /etc/ssh/ssh_host_key. ssh-keygen -t rsa1 -b f /etc/ssh/ssh_host_key -N '' fi [. Code omitted ] echo -n "Starting SSH daemon" ## Start daemon with startproc(8). If this fails ## the echo return value is set appropriate. startproc -f /usr/sbin/sshd $SSHD_OPTS # Remember status and be verbose rc_status -v

9 stop) echo -n "Shutting down SSH daemon" ## Stop daemon with killproc(8) and if this fails ## set echo the echo return value. if [ -x /bin/netstat ]; then netstat -nlp 2>/dev/null while read prot a b local remote state pro g; do if [ "${local##*:}" = "22" ] ; then if [ -n "$prog" ]; then kill -TERM ${prog%%/*} fi fi done else rc_failed 1 fi # Remember status and be verbose rc_status -v try-restart) ## Stop the service and if this succeeds (i.e. the ## service was running before), start it again. $0 status >/dev/null && $0 restart # Remember status and be quiet rc_status

10 restart) ## Stop the service and regardless of whether it was ## running or not, start it again. $0 stop $0 start # Remember status and be quiet rc_status force-reload reload) ## Signal the daemon to reload its config. Most daemons ## do this on signal 1 (SIGHUP). echo -n "Reload service sshd" [ code omitted...] rc_status -v

11 status) echo -n "Checking for service sshd: " ## Check status with checkproc(8), if process is running ## checkproc will return with exit status 0. # Status has a slightly different for the status command: # 0 - service running # 1 - service dead, but /var/run/ pid file exists # 2 - service dead, but /var/lock/ lock file exists # 3 - service not running if [ -x /bin/netstat ]; then netstat -nlp 2>/dev/null ( while read prot a b local remote state p rog; do [ code omitted ] fi rc_status -v probe) ## Optional: Probe for the necessity of a reload, ## give out the argument which is required for a reload. test /etc/ssh/sshd_config -nt /var/run/sshd.pid && echo reload

12 *) echo "Usage: $0 {start stop status try-restart restart force-reload relo ad probe}" exit 1 esac rc_exit Linux Tools for Manipulating init insserv chkconfig /etc/sysconfig Not really a tool, but a place to store config info, Bourne shell syntax

13 chkconfig chkconfig -s --set [name state] chkconfig -e --edit [names] chkconfig -c --check name [state] chkconfig -l --list [--deps] [names] chkconfig -a --add [names] chkconfig -d --del [names] Danger, Will Robinson! SLES 7 insserv is BROKEN Make sure your scripts have correct headers! SLES 8 insserv is OK. Works OK in RH Note that comment header is different in RH, but both RH and United Linux headers can be in same file.

14 Q&A Contact Info David Boyes Sine Nomine Associates

15

Automating Linux App Startup

Automating Linux App Startup Automating Linux App Startup David Boyes Session L55 2006 Sine Nomine Associates Agenda Runlevels, init, and symlinks, oh, my! Sequence of events during startup A sample application startup script Separating

More information

Supercharged VM Startup: A System V-Style INIT Process for VM and Guests

Supercharged VM Startup: A System V-Style INIT Process for VM and Guests Supercharged VM Startup: A System V-Style INIT Process for VM and Guests David Boyes Sine Nomine Associates WAVV Colorado Springs 2005 2005 Sine Nomine Associates Presentation Download This presentation

More information

CSE 265: System and Network Administration

CSE 265: System and Network Administration CSE 265: System and Network Administration System startup and shutdown Bootstrapping Booting PCs Boot loaders Booting into single user mode Startup scripts Rebooting and shutting down Bootstrapping i.e.,

More information

CSE 265: System and Network Administration

CSE 265: System and Network Administration CSE 265: System and Network Administration System startup and shutdown Bootstrapping Booting PCs Boot loaders Booting into single user mode Startup scripts Rebooting and shutting down Bootstrapping i.e.,

More information

Booting Up and Shutting Down. lctseng / Liang-Chi Tseng

Booting Up and Shutting Down. lctseng / Liang-Chi Tseng Booting Up and Shutting Down lctseng / Liang-Chi Tseng Booting Up Starting up a computer Load kernel into memory and execute it. (1) BIOS load and run the MBR (Master Boot Record) (2) MBR searches for

More information

Chapter 2 Booting Up and Shutting Down

Chapter 2 Booting Up and Shutting Down Chapter 2 Booting Up and Shutting Down Boot Up? 2 Shut Down? 3 Booting Up Starting up a computer Load kernel into memory and execute it. (1) BIOS load and run the MBR (Master Boot Record) (2) MBR searches

More information

Certification. System Initialization and Services

Certification. System Initialization and Services Certification System Initialization and Services UNIT 3 System Initialization and Services UNIT 3: Objectives Upon completion of this unit the student should be able to: Describe BIOS functions with respect

More information

Booting up and Shutting down A primer for troubleshooting

Booting up and Shutting down A primer for troubleshooting Booting up and Shutting down A primer for troubleshooting In this section, we touch upon the startup and shutdown process on Linux. It is beyond the scope of this course to cover this topic in depth and

More information

Booting Up and Shutting Down

Booting Up and Shutting Down Booting Up and Shutting Down Booting Up Starting up a computer Load kernel into memory and execute it. (1) BIOS load and run the MBR (Master Boot Record) (2) MBR searches for the bootable slice (partition)

More information

Advanced Unix System Administration

Advanced Unix System Administration Advanced Unix System Administration Lecture 5 February 14, 2007 Steven Luo Shared Libraries The dynamic linker Binaries have a symbol table containing functions, etc. and

More information

RHCE BOOT CAMP. The Boot Process. Wednesday, November 28, 12

RHCE BOOT CAMP. The Boot Process. Wednesday, November 28, 12 RHCE BOOT CAMP The Boot Process OVERVIEW The boot process gets a machine from the useless off state to the feature rich operating system we all know and love Requires cooperation between hardware and software

More information

systemd: Converting sysvinit scripts

systemd: Converting sysvinit scripts systemd: Converting sysvinit scripts Welcome back for another installment of the systemd series. Throughout this series, we discuss ways to use systemd to understand and manage your system. This article

More information

System Administration. Startup Process

System Administration. Startup Process System Administration Startup Process Why Care? Every process on your system comes about by following a specific chain of events from the machine startup You may want to disable processes You may want

More information

ameh Documentation Release Eric Pierce

ameh Documentation Release Eric Pierce ameh Documentation Release 0.0.1 Eric Pierce July 17, 2012 CONTENTS 1 Motivation 3 2 Configuration 5 3 Usage 7 3.1 Permissions................................................ 7 3.2 init....................................................

More information

Authored by: Brian E. Brzezicki Copyright 2013, Paladin Group LLC Reuse without permission is strictly prohibited

Authored by: Brian E. Brzezicki Copyright 2013, Paladin Group LLC Reuse without permission is strictly prohibited Authored by: Brian E. Brzezicki Copyright 2013, Paladin Group LLC Reuse without permission is strictly prohibited Traditionally Unix systems have used the ATT System V initialization mechanism In System

More information

Getting Started with MySQL

Getting Started with MySQL A P P E N D I X B Getting Started with MySQL M ysql is probably the most popular open source database. It is available for Linux and you can download and install it on your Linux machine. The package is

More information

The Linux IPL Procedure

The Linux IPL Procedure The Linux IPL Procedure SHARE - Tampa February 13, 2007 Session 9274 Edmund MacKenty Rocket Software, Inc. Purpose De-mystify the Linux boot sequence Explain what happens each step of the way Describe

More information

simplevisor Documentation

simplevisor Documentation simplevisor Documentation Release 1.2 Massimo Paladin June 27, 2016 Contents 1 Main Features 1 2 Installation 3 3 Configuration 5 4 simplevisor command 9 5 simplevisor-control command 13 6 Supervisor

More information

Runlevels, System Shutdown and Reboot

Runlevels, System Shutdown and Reboot Information These notes were originally written in the year 2000 as part of a set of LPI Exam 101 training materials. The LPI training course at Bromley College was subsequently discontinued and some of

More information

OPERATING SYSTEMS LINUX

OPERATING SYSTEMS LINUX OPERATING SYSTEMS LINUX Božo Krstajić, PhD, University of Montenegro Podgorica bozok@cg.ac.yu Process management Linux operating systems work with processes. Basically a process consists of program code

More information

Services and Security

Services and Security Services and Security Find out what's listening to the net Find out what services are running Find out what they do Disable or remove any that you don't need References http://techrepublic.com.com/5100-6270-1053043.html

More information

CST8177 Linux II. Linux Boot Process

CST8177 Linux II. Linux Boot Process CST8177 Linux II Linux Boot Process Reference information from the text, http://www.linuxdoc.org and several other web sites Linux Boot Process Topics covered in this slide-set Basic definition of the

More information

Process Management forks, bombs, zombies, and daemons! Lecture 5, Hands-On Unix System Administration DeCal

Process Management forks, bombs, zombies, and daemons! Lecture 5, Hands-On Unix System Administration DeCal Process Management forks, bombs, zombies, and daemons! Lecture 5, Hands-On Unix System Administration DeCal 2012-10-01 what is a process? an abstraction! you can think of it as a program in the midst of

More information

Services, logging, accounting Todd Kelley CST8177 Todd Kelley 1

Services, logging, accounting Todd Kelley CST8177 Todd Kelley 1 Services, logging, accounting Todd Kelley kelleyt@algonquincollege.com CST8177 Todd Kelley 1 services syslog logger command line utility psacct lastcomm ac, last, lastlog 2 chkconfig vs service (review)

More information

OpenRC vs rc.d. Compare and contrast

OpenRC vs rc.d. Compare and contrast OpenRC vs rc.d Compare and contrast Quick OpenRC FAQ Q. Is OpenRC an init system? Yes - IF you want to use it that way. OpenRC was originally designed only as an rc system. This is how TrueOS uses it,

More information

The Linux Boot Process

The Linux Boot Process The Linux Boot Process Dr. Billy Harris -- Linux booting -- init/services configuration Copyright 2002 Billy Harris (Billy-Harris@utc.edu) You are welcome to use and distribute this document so long as

More information

Chapter 2: Operating-System Structures

Chapter 2: Operating-System Structures Chapter 2: Operating-System Structures Chapter 2: Operating-System Structures Operating System Services User Operating System Interface System Calls Types of System Calls System Programs Operating System

More information

Advanced Bash Scripting

Advanced Bash Scripting for HPC SysAdmins Piero Calucci 1 2 1 Scuola Internazionale Superiore di Studi Avanzati Trieste 2 Democritos Modeling Center for Research in Atomistic Simulation INFM November 2008 Advanced School in High

More information

Linux System Administration

Linux System Administration System Processes Objective At the conclusion of this module, the student will be able to: Describe and define a process Identify a process ID, the parent process and the child process Learn the PID for

More information

systemd: What to Know and How to Transition

systemd: What to Know and How to Transition systemd: What to Know and How to Transition Tom Sorensen Solutions Architect, Red Hat 2 Agenda 4 What is systemd? What does systemd offer? How does this affect me? How do I transition to systemd? What

More information

ECE 550D Fundamentals of Computer Systems and Engineering. Fall 2017

ECE 550D Fundamentals of Computer Systems and Engineering. Fall 2017 ECE 550D Fundamentals of Computer Systems and Engineering Fall 2017 The Operating System (OS) Prof. John Board Duke University Slides are derived from work by Profs. Tyler Bletsch and Andrew Hilton (Duke)

More information

minit Felix von Leitner September 2004 minit

minit Felix von Leitner September 2004 minit minit Felix von Leitner felix-minit@fefe.de September 2004 minit What is this all about? This talk is about a new init program called minit. Several itches needed scratching: 1. Typical Linux distributions

More information

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edit9on

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edit9on Chapter 2: Operating-System Structures Operating System Concepts 9 th Edit9on Silberschatz, Galvin and Gagne 2013 Objectives To describe the services an operating system provides to users, processes, and

More information

CHAPTER 2: SYSTEM STRUCTURES. By I-Chen Lin Textbook: Operating System Concepts 9th Ed.

CHAPTER 2: SYSTEM STRUCTURES. By I-Chen Lin Textbook: Operating System Concepts 9th Ed. CHAPTER 2: SYSTEM STRUCTURES By I-Chen Lin Textbook: Operating System Concepts 9th Ed. Chapter 2: System Structures Operating System Services User Operating System Interface System Calls Types of System

More information

Chapter 2: System Structures. Operating System Concepts 9 th Edition

Chapter 2: System Structures. Operating System Concepts 9 th Edition Chapter 2: System Structures Silberschatz, Galvin and Gagne 2013 Chapter 2: System Structures Operating System Services User Operating System Interface System Calls Types of System Calls System Programs

More information

Advanced Unix Programming Module 03 Raju Alluri spurthi.com

Advanced Unix Programming Module 03 Raju Alluri spurthi.com Advanced Unix Programming Module 03 Raju Alluri askraju @ spurthi.com Advanced Unix Programming: Module 3 Shells & Shell Programming Environment Variables Writing Simple Shell Programs (shell scripts)

More information

NETWORK CONFIGURATION AND SERVICES. route add default gw /etc/init.d/apache restart

NETWORK CONFIGURATION AND SERVICES. route add default gw /etc/init.d/apache restart NETWORK CONFIGURATION AND SERVICES route add default gw 192.168.0.1 /etc/init.d/apache restart NETWORK CONFIGURATION There are two main approaches to configuring a machine for network access: Static configuration

More information

Integration of UNICORE Components into Linux Systems

Integration of UNICORE Components into Linux Systems Mitglied der Helmholtz-Gemeinschaft Integration of UNICORE Components into Linux Systems 15.12.2009 Rebecca Breu UNICORE Installation as of Now tgz or graphical installer all files installed into one directory

More information

Basic Shell Commands. Bok, Jong Soon

Basic Shell Commands. Bok, Jong Soon Basic Shell Commands Bok, Jong Soon javaexpert@nate.com www.javaexpert.co.kr Focusing on Linux Commands These days, many important tasks in Linux can be done from both graphical interfaces and from commands.

More information

"Charting the Course... Enterprise Linux System Administration Course Summary

Charting the Course... Enterprise Linux System Administration Course Summary Course Summary Description This is an in-depth course that explores installation, configuration and maintenance of Linux systems. The course focuses on issues universal to every workstation and server.

More information

Lecture 5: Jobs and Processes

Lecture 5: Jobs and Processes Lecture 5: and CS2042 - UNIX Tools October 8, 2008 and Lecture Outline 1 2 Manipulating and Intro to Definition: A process is an instance of a running program. More specific than a program because it s

More information

ENTERPRISE LINUX SYSTEM ADMINISTRATION

ENTERPRISE LINUX SYSTEM ADMINISTRATION ENTERPRISE LINUX SYSTEM ADMINISTRATION COURSE DESCRIPTION: The GL250 is an in-depth course that explores installation, configuration and maintenance of Linux systems. The course focuses on issues universal

More information

CompTIA Exam LX0-102 Linux Part 2 Version: 10.0 [ Total Questions: 177 ]

CompTIA Exam LX0-102 Linux Part 2 Version: 10.0 [ Total Questions: 177 ] s@lm@n CompTIA Exam LX0-102 Linux Part 2 Version: 10.0 [ Total Questions: 177 ] CompTIA LX0-102 : Practice Test Topic break down Topic No. of Questions Topic 1: Volume A 60 Topic 2: Volume B 59 Topic 3:

More information

init rides the rocket: systemd is here Olaf Kirch

init rides the rocket: systemd is here Olaf Kirch init rides the rocket: systemd is here Olaf Kirch Director SUSE Linux Enterprise okir@suse.com 2 Love it or hate it? 3 1996: Linux Distros adopt SysV-init 4 2001: LSB standardizes init scripts 5 2010:

More information

Booting: ROM vs RAM The term random access memory is somewhat misleading because DRAM, SRAM and ROM all qualify as random access memories We will

Booting: ROM vs RAM The term random access memory is somewhat misleading because DRAM, SRAM and ROM all qualify as random access memories We will Booting Main memory stores the OS The OS needs to be in memory and running for us to be able to start and run other processes Main memory is volatile turn off the power and you lose the contents When you

More information

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edition

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edition Chapter 2: Operating-System Structures Silberschatz, Galvin and Gagne 2013 Chapter 2: Operating-System Structures Operating System Services User Operating System Interface System Calls Types of System

More information

University of Pennsylvania Zachary Goldberg. CIS c. More Kernel Bits. 10/03/09 Slide 1

University of Pennsylvania Zachary Goldberg. CIS c. More Kernel Bits. 10/03/09 Slide 1 More Kernel Bits 10/03/09 Slide 1 Rebooting Why would one ever need to reboot on Linux? Installing new driver?... (No) Installing new applications?... (No) Installing new... Anything?... (No) Reconfiguring...

More information

Please choose the best answer. More than one answer might be true, but choose the one that is best.

Please choose the best answer. More than one answer might be true, but choose the one that is best. Introduction to Linux and Unix - endterm Please choose the best answer. More than one answer might be true, but choose the one that is best. SYSTEM STARTUP 1. A hard disk master boot record is located:

More information

Chapter 2. Operating-System Structures

Chapter 2. Operating-System Structures Chapter 2 Operating-System Structures 2.1 Chapter 2: Operating-System Structures Operating System Services User Operating System Interface System Calls Types of System Calls System Programs Operating System

More information

Advanced Operating Systems and Virtualization. Alessandro Pellegrini A.Y. 2017/2018

Advanced Operating Systems and Virtualization. Alessandro Pellegrini A.Y. 2017/2018 Advanced Operating Systems and Virtualization Alessandro Pellegrini A.Y. 2017/2018 Basic Information Lecture Schedule: Course begins today! Course ends on June 1 st Lecture slots: Tuesday, 08.00 am 10.00

More information

Initialization: runlevels

Initialization: runlevels Initialization: init The init process is always the first started (has a PID of 1) and will remain running until the system is shut down With init running, the kernel moves to the background awaiting system

More information

Introduction to Linux Init Scripts

Introduction to Linux Init Scripts Introduction to Linux Init Scripts In this session we will cover the Linux initialization process, run levels, how to change the run level and how to initialize a script on login. LAB: http://processors.wiki.ti.com/index.php/sitara_linux_training:_init_scripts

More information

System control mechanisms

System control mechanisms System control mechanisms David Morgan System control - boot and after passing kernel boot parameters sysconfig: boot process control /proc and sysctrl: tuning kernel config others controlling default

More information

bash Args, Signals, Functions Administrative Shell Scripting COMP2101 Fall 2018

bash Args, Signals, Functions Administrative Shell Scripting COMP2101 Fall 2018 bash Args, Signals, Functions Administrative Shell Scripting COMP2101 Fall 2018 Error Output Failed commands often generate unwanted or irrelevant error messages That output can be saved as a log, sent

More information

Wireless Network Access at Swinburne Using FreeBSD 5.3

Wireless Network Access at Swinburne Using FreeBSD 5.3 802.11 Wireless Network Access at Swinburne Using FreeBSD 5.3 CAIA Technical Report 041221A Jason But December 21st, 2004 Introduction FreeBSD is a UNIX oriented operating system which is also the default

More information

Best practices on deployment of IBM Rational. servers

Best practices on deployment of IBM Rational. servers Best practices on deployment of IBM Rational License key server(rlks) on Linux and Unix servers Pankaj Sharma and Sombir Yadav October 21, 2015 Page 1 of 25 INTRODUCTION CONFIGURATION OF LICENSE FILE ON

More information

bash Args, Signals, Functions Administrative Shell Scripting COMP2101 Fall 2017

bash Args, Signals, Functions Administrative Shell Scripting COMP2101 Fall 2017 bash Args, Signals, Functions Administrative Shell Scripting COMP2101 Fall 2017 Positional Arguments It is quite common to allow the user of a script to specify what the script is to operate on (e.g. a

More information

More on file systems, Booting Todd Kelley CST8177 Todd Kelley 1

More on file systems, Booting Todd Kelley CST8177 Todd Kelley 1 More on file systems, Booting Todd Kelley kelleyt@algonquincollege.com CST8177 Todd Kelley 1 bind mounts quotas Booting process and SysVinit Installation Disk rescue mode 2 A bind mount is used to mount

More information

More Scripting Todd Kelley CST8207 Todd Kelley 1

More Scripting Todd Kelley CST8207 Todd Kelley 1 More Scripting Todd Kelley kelleyt@algonquincollege.com CST8207 Todd Kelley 1 Arithmetic Output with printf Input from a file from a command CST8177 Todd Kelley 2 A script can test whether or not standard

More information

LPI102 EXAM PREPARATION LPIC-1 (LINUX PROFESSIONAL INSTITUTE)

LPI102 EXAM PREPARATION LPIC-1 (LINUX PROFESSIONAL INSTITUTE) LPI102 EXAM PREPARATION LPIC-1 (LINUX PROFESSIONAL INSTITUTE) COURSE DESCRIPTION: This course prepares students to take the LPI 102 exam of the LPI level 1 certification. The LPI objectives covered are

More information

LPIC 102. be familiar with standard runlevels in a Linux system

LPIC 102. be familiar with standard runlevels in a Linux system LPIC 102 The boot process, init and runlevels 1 Aim After successfully working through this exercise, You will: be familiar with standard runlevels in a Linux system be able to rescue a system without

More information

Manual Shell Script Linux If Not Equal String Comparison

Manual Shell Script Linux If Not Equal String Comparison Manual Shell Script Linux If Not Equal String Comparison From the Linux ping manual: If mkdir d failed, and returned a non-0 exit code, Bash will skip the next command, and we will stay in the current

More information

Using grub to Boot various Operating Systems

Using grub to Boot various Operating Systems Operating Systems and Systems Integration Using grub to Boot various Operating Systems Contents 1 Aim 2 2 What You Will Do 2 3 Background 2 3.1 Installing grub in MBR from a floppy, and from the OS........

More information

Basic Linux Security. Roman Bohuk University of Virginia

Basic Linux Security. Roman Bohuk University of Virginia Basic Linux Security Roman Bohuk University of Virginia What is Linux? An open source operating system Project started by Linus Torvalds kernel Kernel: core program that controls everything else (controls

More information

CS370 Operating Systems

CS370 Operating Systems CS370 Operating Systems Colorado State University Yashwant K Malaiya Fall 2016 Lecture 5 Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 User Operating System Interface - CLI CLI

More information

Processes. CS3026 Operating Systems Lecture 05

Processes. CS3026 Operating Systems Lecture 05 Processes CS3026 Operating Systems Lecture 05 Dispatcher Admit Ready Queue Dispatch Processor Release Timeout or Yield Event Occurs Blocked Queue Event Wait Implementation: Using one Ready and one Blocked

More information

Manual Script Windows Batch If Statement. Example >>>CLICK HERE<<<

Manual Script Windows Batch If Statement. Example >>>CLICK HERE<<< Manual Script Windows Batch If Statement Example Command line interface and Batch Files (PRO and SCRIPTING Editions) Related example batch: Examples/Batch Files starts each time you start Windows and runs

More information

Installation of Lotus Sametime on SUSE Linux Enterprise Server 10

Installation of Lotus Sametime on SUSE Linux Enterprise Server 10 Installation of Lotus Sametime 8.0.2.1 on SUSE Linux Enterprise Server 10 Maik Weber (maik.weber@de.ibm.com) December 8, 2009 Contents OVERVIEW...3 ABSTRACT...3 REQUIREMENTS...3 INFORMATIONS...4 ICONS...4

More information

CompTIA Linux+/LPIC-1 COPYRIGHTED MATERIAL

CompTIA Linux+/LPIC-1 COPYRIGHTED MATERIAL CompTIA Linux+/LPIC-1 COPYRIGHTED MATERIAL Chapter System Architecture (Domain 101) THE FOLLOWING COMPTIA LINUX+/LPIC-1 EXAM OBJECTIVES ARE COVERED IN THIS CHAPTER: 101.1 Determine and Configure hardware

More information

Chapter 2. UNIX Installation. Node Locked vs Floating Network Licensing. Installation Procedure. Floating Network Keycodes. Node Locked Keycodes.

Chapter 2. UNIX Installation. Node Locked vs Floating Network Licensing. Installation Procedure. Floating Network Keycodes. Node Locked Keycodes. Chapter 2 UNIX Installation Installation of Artwork Conversion Software s translators and postprocessors on UNIX platforms has been adjusted to make it as similar as possible across the various machines

More information

ITDUMPS QUESTION & ANSWER. Accurate study guides, High passing rate! IT dumps provides update free of charge in one year!

ITDUMPS QUESTION & ANSWER. Accurate study guides, High passing rate! IT dumps provides update free of charge in one year! ITDUMPS QUESTION & ANSWER Accurate study guides, High passing rate! IT dumps provides update free of charge in one year! HTTP://WWW.ITDUMPS.COM Exam : 1Z0-100 Title : Oracle Linux 5 and 6 System Administration

More information

The Wonderful World of Services. By: Stefanja

The Wonderful World of Services. By: Stefanja The Wonderful World of Services By: Stefanja What Is a Service? Make the computer world go round Without Services we d have nothing A service is an application that runs in the background to enable a computer

More information

CS420: Operating Systems. OS Services & System Calls

CS420: Operating Systems. OS Services & System Calls OS Services & System Calls James Moscola Department of Engineering & Computer Science York College of Pennsylvania Based on Operating System Concepts, 9th Edition by Silberschatz, Galvin, Gagne Operating

More information

Linux shell scripting Getting started *

Linux shell scripting Getting started * Linux shell scripting Getting started * David Morgan *based on chapter by the same name in Classic Shell Scripting by Robbins and Beebe What s s a script? text file containing commands executed as a unit

More information

Setting up IBM Data Server Manager as a Highly Available Service

Setting up IBM Data Server Manager as a Highly Available Service Setting up IBM Data Server Manager as a Highly Available Service Version 1.0 March 21 st 2017 Xiao Min Zhao xmzhao@cn.ibm.com Copyright IBM Corporation 2017 IBM Route 100 Somers, NY 10589 Produced in the

More information

Elastix Smart Assistant

Elastix Smart Assistant Elastix Smart Assistant Administrator Manual Objective: Allow the administrator to set up the initial configuration of Smart Assistant in an Elastix server. Description: Smart Assistant is an application

More information

D. Delete the /var/lib/slocate/slocate.db file because it buffers all search results.

D. Delete the /var/lib/slocate/slocate.db file because it buffers all search results. Volume: 230 Questions Question No: 1 You located a file created in /home successfully by using the slocate command. You found that the slocate command could locate that file even after deletion. What could

More information

Operating System Services. User Services. System Operation Services. User Operating System Interface - CLI. A View of Operating System Services

Operating System Services. User Services. System Operation Services. User Operating System Interface - CLI. A View of Operating System Services Operating System Services One set of services for users The other set of services for system operations Operating Systems Structures Notice: This set of slides is based on the notes by Professor Perrone

More information

More on file systems, Booting Todd Kelley CST8177 Todd Kelley 1

More on file systems, Booting Todd Kelley CST8177 Todd Kelley 1 More on file systems, Booting Todd Kelley kelleyt@algonquincollege.com CST8177 Todd Kelley 1 bind mounts quotas Booting process and SysVinit Installation Disk rescue mode 2 A bind mount is used to mount

More information

Operating Systems. II. Processes

Operating Systems. II. Processes Operating Systems II. Processes Ludovic Apvrille ludovic.apvrille@telecom-paristech.fr Eurecom, office 470 http://soc.eurecom.fr/os/ @OS Eurecom Outline Concepts Definitions and basic concepts Process

More information

Using BeOS to Ease the Installation, Support and Troubleshooting of Linux on Intel Desktops

Using BeOS to Ease the Installation, Support and Troubleshooting of Linux on Intel Desktops BY DAVID GOEKE Using BeOS to Ease the Installation, Support and Troubleshooting of Linux on Intel Desktops I nstalling hardware-dependent Linux, customizing a kernel, and configuring X-Windows on hybrid

More information

Linux Systems Administration Getting Started with Linux

Linux Systems Administration Getting Started with Linux Linux Systems Administration Getting Started with Linux Network Startup Resource Center www.nsrc.org These materials are licensed under the Creative Commons Attribution-NonCommercial 4.0 International

More information

Why did you do this to me?!

Why did you do this to me?! Systemd Why did you do this to me?! 3 1996: Linux Distros adopt SysV-init 2001: LSB standardizes init scripts 2010: Mobile Distros and Parallel Boot... 2027: Still in Good Shape? 4 What's wrong with sysvinit?

More information

Operating System Kernel and the boot process

Operating System Kernel and the boot process Operating System Kernel and the Nick Urbanik Copyright Conditions: GNU FDL (seehttp://www.gnu.org/licenses/fdl.html) A computing department I ver. 1.3 Operating System Kernel and Booting

More information

UNIX System Administration

UNIX System Administration $!... 14:13 $$... 14:13.netrc...12:27-28 /etc/fstab... 6:25 /etc/hosts.equiv... 8:23 /etc/inittab Entries... 4:8 /etc/netmasks... 8:22 /etc/shells... 12:25 /home... 6:69 /tmp...6:61-67 /usr... 6:70 /var...

More information

RHCSA BOOT CAMP. Network Security

RHCSA BOOT CAMP. Network Security RHCSA BOOT CAMP Network Security TCP WRAPPERS TCP Wrappers was originally written to provide host based access control for services which did not already include it. It was one of the first firewalls of

More information

The kernel is not to be confused with the Basic Input/Output System (BIOS).

The kernel is not to be confused with the Basic Input/Output System (BIOS). Linux Kernel The kernel is the essential center of a computer operating system, the core that provides basic services for all other parts of the operating system. A kernel can be contrasted with a shell,

More information

CSCI 211 UNIX Lab. Shell Programming. Dr. Jiang Li. Jiang Li, Ph.D. Department of Computer Science

CSCI 211 UNIX Lab. Shell Programming. Dr. Jiang Li. Jiang Li, Ph.D. Department of Computer Science CSCI 211 UNIX Lab Shell Programming Dr. Jiang Li Why Shell Scripting Saves a lot of typing A shell script can run many commands at once A shell script can repeatedly run commands Help avoid mistakes Once

More information

HOW LINUX BOOTS. As it turns out, there isn t much to the boot process:

HOW LINUX BOOTS. As it turns out, there isn t much to the boot process: 3 HOW LINUX BOOTS You now know the physical structure of a Linux system, what the kernel is, and how to work with processes. This chapter teaches you how the system starts (boots) that is, how the kernel

More information

Four Components of a Computer System

Four Components of a Computer System Four Components of a Computer System Operating System Concepts Essentials 2nd Edition 1.1 Silberschatz, Galvin and Gagne 2013 Operating System Definition OS is a resource allocator Manages all resources

More information

TRACE32 Installation... Floating Licenses... 1

TRACE32 Installation... Floating Licenses... 1 Floating Licenses TRACE32 Online Help TRACE32 Directory TRACE32 Index TRACE32 Installation... Floating Licenses... 1 Introduction... 3 TRACE32 Floating License Overview 3 TRACE32 Front-End License as Base

More information

OPERATING SYSTEMS. Božo Krstajić, PhD, University of Montenegro Podgorica.

OPERATING SYSTEMS. Božo Krstajić, PhD, University of Montenegro Podgorica. OPERATING SYSTEMS Božo Krstajić, PhD, University of Montenegro Podgorica bozok@cg.ac.yu 1 The /etc/rc.d directory The system initialization files are stored in the /etc/rc.d directory. Each task or runlevel

More information

How to stop / start services in boot time and install / remove / update SuSE SLES (Suse Enterprise Linux Server)?

How to stop / start services in boot time and install / remove / update SuSE SLES (Suse Enterprise Linux Server)? How to stop / start services in boot time and install / remove / update SuSE SLES (Suse Enterprise Linux Server)? Author : admin If you're long time Linux sysadmin but you haven't need to adminster SuSE

More information

Chapter 2: Operating-System Structures. Operating System Concepts Essentials 8 th Edition

Chapter 2: Operating-System Structures. Operating System Concepts Essentials 8 th Edition Chapter 2: Operating-System Structures Operating System Concepts Essentials 8 th Edition Silberschatz, Galvin and Gagne 2011 Chapter 2: Operating-System Structures Operating System Services User Operating

More information

The Early System Start-Up Process. Group Presentation by: Tianyuan Liu, Caiwei He, Krishna Parasuram Srinivasan, Wenbin Xu

The Early System Start-Up Process. Group Presentation by: Tianyuan Liu, Caiwei He, Krishna Parasuram Srinivasan, Wenbin Xu The Early System Start-Up Process Group Presentation by: Tianyuan Liu, Caiwei He, Krishna Parasuram Srinivasan, Wenbin Xu 1 Boot Process Booting is the initialization of a computerized system In Linux,

More information

Chapter 2: System Structures. Operating System Concepts 9 th Edition

Chapter 2: System Structures. Operating System Concepts 9 th Edition Chapter 2: System Structures Silberschatz, Galvin and Gagne 2013 Chapter 2: System Structures Operating System Services User Operating System Interface System Calls Types of System Calls System Programs

More information

Manual Shell Script Linux If File Exists And

Manual Shell Script Linux If File Exists And Manual Shell Script Linux If File Exists And Is Not Empty read Bash Conditional Expressions in the manual, and use the -r and -w operators glenn jackman Dec 10 '14 at -s FILE True if file exists and is

More information

Users Manual. OP5 System 2.4. OP5 AB. Page 1 of 6

Users Manual. OP5 System 2.4. OP5 AB. Page 1 of 6 Users Manual OP5 System 2.4 OP5 AB. Page 1 of 6 Table of Contents INTRODUCTION...3 FUNDAMENTALS...3 SYSTEM...3 ACCESS...3 ACCOUNTS...3 CONFIGURATION...4 NETWORK...4 SHUTDOWN...4 SERVICES...5 UPGRADE /

More information

Start Up and Shutdown Procedures (Unix)

Start Up and Shutdown Procedures (Unix) Start Up and Shutdown Procedures (Unix) Start Up On Main Console 1. Press the Server main power button ON 2. The system will automatically go through the start-up procedures, which will be displayed on

More information

Chapter 2: Operating-System

Chapter 2: Operating-System Chapter 2: Operating-System Structures Chapter 2: Operating-System Structures Operating System Services! User Operating System Interface! System Calls! Types of System Calls! System Programs! Operating

More information