ABDURROZAK
HOME ABOUT ME MICROSITE KONTAK PERSEMBAHAN HELP
ABDURROZAK.MY.ID // DEBIAN LINUX SERVER FUNDAMENTAL

PROCESS & SERVICEMANAGEMENT

Volume 09 dari seri Debian Linux Server Fundamental. Panduan komprehensif mengelola process dan service di Linux. Setiap command dijelaskan detail dengan syntax, parameter, contoh penggunaan, dan output. Dari process pada Linux hingga enable service saat boot.

VOLUME09 / 17
SUB-BAB7
BACA75 MENIT
PROCESS100%
ABDUR ROZAK, S.Kom. Web Developer & System Administrator - abdurrozak.my.id
VOLUME 09 / 17

MENGELOLA PROCESS DAN SERVICE

Panduan lengkap Process & Service Management di Debian Linux. 7 sub-bab mencakup process pada Linux, ps/top/htop, kill process, background process, mengenal systemd, systemctl start/stop/restart, hingga enable service saat boot. Setiap command disertai penjelasan detail dan contoh praktis.
SUB-BAB7 LEVELProcess & Service WAKTU75 MENIT
01
SUB-BAB 01 PROCESS

PROCESS PADA LINUX

Apa Itu Process?

Process adalah instance dari program yang sedang berjalan. Setiap kali kamu menjalankan program (seperti ls, nano, atau firefox), sistem operasi membuat process baru. Setiap process memiliki:

  • PID (Process ID) - ID unik untuk setiap process
  • PPID (Parent Process ID) - ID dari parent process
  • State - Status process (running, sleeping, stopped, zombie)
  • Priority - Prioritas process (nice value)
  • Memory - Jumlah memory yang digunakan
  • CPU Time - Waktu CPU yang digunakan

Process Hierarchy

Linux menggunakan sistem hierarki process. Setiap process memiliki parent process (kecuali init/systemd yang merupakan process pertama dengan PID 1). Ketika kamu menjalankan command, shell membuat child process.

bash
# Lihat process tree admin@server:~$ pstree systemd─┬─ModemManager───2*[{ModemManager}] ├─accounts-daemon───2*[{accounts-daemon}] ├─acpid ├─atd ├─cron ├─dbus-daemon ├─sshd───sshd───bash───pstree └─systemd───(sd-pam) # Lihat process tree dengan PID admin@server:~$ pstree -p systemd(1)─┬─ModemManager(654)─┬─{ModemManager}(673) │ └─{ModemManager}(680) ├─sshd(712)───sshd(1234)───bash(1235)───pstree(1236) # Lihat process tree dengan user admin@server:~$ pstree -u systemd─┬─ModemManager─┬─{ModemManager} │ └─{ModemManager} ├─sshd───sshd───bash(admin)───pstree(admin)

Process States

STATEKODEDESKRIPSI
RunningRProcess sedang berjalan atau di queue untuk berjalan
SleepingSProcess menunggu event (interruptible sleep)
Deep SleepDUninterruptible sleep (menunggu I/O)
StoppedTProcess di-stop oleh signal
ZombieZProcess sudah selesai tapi parent belum acknowledge

Melihat Process dengan ps

bash
# Lihat semua process admin@server:~$ ps aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.1 169344 11520 ? Ss 10:00 0:00 /sbin/init root 654 0.0 0.2 523456 23456 ? Ssl 10:00 0:00 /usr/sbin/ModemManager root 712 0.0 0.1 72340 5640 ? Ss 10:00 0:00 /usr/sbin/sshd -D admin 1234 0.0 0.1 72340 5640 ? Ss 10:30 0:00 sshd: admin@pts/0 admin 1235 0.0 0.0 21568 3456 pts/0 Ss 10:30 0:00 -bash admin 1236 0.0 0.0 38120 3200 pts/0 R+ 10:30 0:00 ps aux # Penjelasan kolom: # USER - User yang menjalankan process # PID - Process ID # %CPU - Persentase CPU yang digunakan # %MEM - Persentase memory yang digunakan # VSZ - Virtual memory size (KB) # RSS - Resident set size (KB) - memory fisik yang digunakan # TTY - Terminal yang menjalankan process # STAT - Status process (S=sleeping, R=running, Z=zombie) # START - Waktu process dimulai # TIME - Total CPU time yang digunakan # COMMAND - Command yang dijalankan # Lihat process user tertentu admin@server:~$ ps -u admin # Lihat process dengan format custom admin@server:~$ ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%cpu # Cari process berdasarkan nama admin@server:~$ ps aux | grep ssh root 712 0.0 0.1 72340 5640 ? Ss 10:00 0:00 /usr/sbin/sshd -D admin 1234 0.0 0.1 72340 5640 ? Ss 10:30 0:00 sshd: admin@pts/0 admin 1237 0.0 0.0 12345 1234 pts/0 S+ 10:31 0:00 grep ssh
TIPS: Gunakan ps aux untuk melihat semua process dengan detail lengkap. Gunakan ps -ef untuk format yang lebih sederhana.
KOMPETENSI SUB-BAB 01
  • Memahami konsep process dan process hierarchy
  • Memahami process states (R, S, D, T, Z)
  • Mampu melihat process dengan ps
  • Mampu mencari process berdasarkan nama
02
SUB-BAB 02 MONITORING

ps, top, DAN htop

top - Real-time Process Monitor

bash
# Jalankan top admin@server:~$ top top - 10:30:15 up 5 days, 3:15, 1 user, load average: 0.08, 0.03, 0.01 Tasks: 120 total, 1 running, 119 sleeping, 0 stopped, 0 zombie %Cpu(s): 2.3 us, 1.0 sy, 0.0 ni, 96.5 id, 0.2 wa, 0.0 hi, 0.0 si, 0.0 st MiB Mem : 1987.2 total, 1456.8 free, 220.4 used, 310.0 buff/cache MiB Swap: 2048.0 total, 2048.0 free, 0.0 used. 1650.4 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1234 admin 20 0 72340 5640 4560 S 0.3 0.3 0:00.45 sshd 1235 admin 20 0 21568 3456 2800 S 0.0 0.2 0:00.12 bash 1236 admin 20 0 38120 3200 2800 R 0.3 0.2 0:00.08 top # Command dalam top: # q - quit (keluar) # h - help # k - kill process # r - renice process (ubah priority) # M - sort by memory usage # P - sort by CPU usage # T - sort by time # u - filter by user # H - toggle threads # c - toggle full command path # 1 - toggle CPU cores display # top dengan update interval tertentu admin@server:~$ top -d 5 # Update setiap 5 detik # top untuk user tertentu admin@server:~$ top -u admin # top dengan PID tertentu admin@server:~$ top -p 1234 # top dengan batch mode (non-interactive) admin@server:~$ top -b -n 1 # -b = batch mode, -n 1 = hanya 1 iterasi

htop - Enhanced Process Monitor

bash
# Install htop admin@server:~$ sudo apt install htop # Jalankan htop admin@server:~$ htop # Command dalam htop: # F1 atau h - help # F2 atau S - setup (konfigurasi) # F3 atau / - search # F4 atau \\ - filter # F5 atau t - tree view # F6 atau F6 - sort by # F9 atau k - kill process # F10 atau q - quit # I - invert sort order # M - sort by memory # P - sort by CPU # T - sort by time # H - toggle threads # u - filter by user # htop dengan user tertentu admin@server:~$ htop -u admin # htop dengan delay tertentu admin@server:~$ htop -d 5 # htop tanpa header admin@server:~$ htop --no-header

Perbedaan top dan htop

FEATUREtophtop
InstallDefault installedPerlu install
InterfaceBasicColorful, interactive
Mouse supportTidakYa
Tree viewTidakYa (F5)
Vertical/horizontal scrollTidakYa
Kill processYa (k)Ya (F9)
SearchTidakYa (F3)
Process filterTidakYa (F4)
TIPS: Gunakan htop untuk monitoring interaktif dengan fitur lengkap. Gunakan top jika htop tidak tersedia atau untuk script non-interactive.
KOMPETENSI SUB-BAB 02
  • Mampu monitor process real-time dengan top
  • Mampu monitor process dengan htop
  • Memahami perbedaan top dan htop
  • Mampu kill process dari top/htop
03
SUB-BAB 03 KILL

KILL PROCESS

kill - Kill Process by PID

bash
# Kill process dengan PID admin@server:~$ kill 1234 # Mengirim SIGTERM (signal 15) - graceful termination # Kill dengan signal tertentu admin@server:~$ kill -9 1234 # SIGKILL (signal 9) - force kill, tidak bisa di-intercept admin@server:~$ kill -SIGTERM 1234 # Sama dengan kill 1234 admin@server:~$ kill -15 1234 # Sama dengan kill 1234 # Kill multiple process admin@server:~$ kill 1234 1235 1236 # Lihat daftar signal admin@server:~$ kill -l 1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL 5) SIGTRAP 6) SIGABRT 7) SIGBUS 8) SIGFPE 9) SIGKILL 10) SIGUSR1 11) SIGSEGV 12) SIGUSR2 15) SIGTERM 17) SIGCHLD 18) SIGCONT 19) SIGSTOP # Signal yang sering digunakan: # 1 - SIGHUP - Hangup (reload config) # 2 - SIGINT - Interrupt (Ctrl+C) # 9 - SIGKILL - Kill (force, tidak bisa di-intercept) # 15 - SIGTERM - Terminate (graceful, default) # 19 - SIGSTOP - Stop (pause process) # 18 - SIGCONT - Continue (resume process) # Kill process tree admin@server:~$ kill -TERM -1234 # - sebelum PID = kill process tree

killall - Kill Process by Name

bash
# Kill semua process dengan nama tertentu admin@server:~$ killall firefox # Kill semua process bernama firefox # Kill dengan signal tertentu admin@server:~$ killall -9 firefox # Force kill semua firefox # Kill process dengan nama yang mengandung pattern admin@server:~$ killall -r "fire.*" # Kill semua process yang namanya match regex # Kill process user tertentu admin@server:~$ killall -u admin firefox # Kill process yang lebih tua dari waktu tertentu admin@server:~$ killall -o 1h firefox # Kill firefox yang sudah berjalan lebih dari 1 jam # Interactive kill (tanya sebelum kill) admin@server:~$ killall -i firefox Kill firefox(1234) ? (y/n)

pkill - Kill Process by Pattern

bash
# Kill process berdasarkan pattern nama admin@server:~$ pkill firefox # Kill semua process yang namanya mengandung "firefox" # Kill dengan exact match admin@server:~$ pkill -x firefox # Hanya kill process yang namanya persis "firefox" # Kill process user tertentu admin@server:~$ pkill -u admin firefox # Kill process dengan parent tertentu admin@server:~$ pkill -P 1234 # Kill semua child process dari PID 1234 # Kill process dengan signal tertentu admin@server:~$ pkill -9 firefox # Kill process berdasarkan full command line admin@server:~$ pkill -f "firefox.*google" # Kill process yang command line-nya mengandung pattern # Kill process yang lebih baru dari waktu tertentu admin@server:~$ pkill -n firefox # Kill firefox yang paling baru # Kill process yang lebih lama dari waktu tertentu admin@server:~$ pkill -o firefox # Kill firefox yang paling lama # Dry run (lihat apa yang akan di-kill tanpa benar-benar kill) admin@server:~$ pkill -e firefox kill (15) firefox(1234) kill (15) firefox(1235)

Perbedaan kill, killall, dan pkill

COMMANDARGUMENTUSE CASE
killPIDKill process spesifik berdasarkan PID
killallNama processKill semua process dengan nama tertentu
pkillPatternKill process berdasarkan pattern (lebih fleksibel)
PERINGATAN: Hati-hati menggunakan kill -9! Process tidak punya kesempatan untuk save data atau cleanup. Gunakan kill (SIGTERM) terlebih dahulu, baru gunakan kill -9 jika process tidak merespon.
TIPS: Gunakan pkill -e untuk dry run sebelum benar-benar kill process. Ini menunjukkan process apa yang akan di-kill tanpa benar-benar meng-kill.
KOMPETENSI SUB-BAB 03
  • Mampu kill process dengan kill
  • Mampu kill process by name dengan killall
  • Mampu kill process by pattern dengan pkill
  • Memahami perbedaan kill, killall, dan pkill
04
SUB-BAB 04 BACKGROUND

BACKGROUND PROCESS

Menjalankan Process di Background

bash
# Jalankan command di background dengan & admin@server:~$ sleep 100 & [1] 1234 # [1] = job number, 1234 = PID # Jalankan multiple command di background admin@server:~$ sleep 100 & sleep 200 & [1] 1234 [2] 1235 # Lihat job yang sedang berjalan admin@server:~$ jobs [1]- Running sleep 100 & [2]+ Running sleep 200 & # Lihat job dengan detail admin@server:~$ jobs -l [1]- 1234 Running sleep 100 & [2]+ 1235 Running sleep 200 & # Lihat semua job (termasuk stopped) admin@server:~$ jobs -a # Lihat job dengan PID admin@server:~$ jobs -p 1234 1235

Foreground dan Background

bash
# Jalankan command di foreground admin@server:~$ sleep 100 # Command berjalan di foreground, terminal terkunci # Pause command (Ctrl+Z) # Tekan Ctrl+Z ^Z [1]+ Stopped sleep 100 # Lihat job admin@server:~$ jobs [1]+ Stopped sleep 100 # Lanjutkan di background admin@server:~$ bg %1 [1]+ sleep 100 & # Lanjutkan di foreground admin@server:~$ fg %1 sleep 100 # Bring job ke foreground tanpa job number admin@server:~$ fg # Membawa job terakhir ke foreground # Bring job tertentu ke foreground admin@server:~$ fg %2 # Membawa job #2 ke foreground

nohup - Run Process yang Tetap Berjalan

bash
# Jalankan command dengan nohup (no hangup) admin@server:~$ nohup long-running-command & nohup: ignoring input and appending output to 'nohup.out' # nohup akan: # 1. Ignore SIGHUP signal (jika terminal ditutup) # 2. Redirect output ke nohup.out # 3. Jalankan di background # Lihat output admin@server:~$ tail -f nohup.out # Redirect output ke file tertentu admin@server:~$ nohup long-running-command > output.log 2>&1 & # Lihat process nohup admin@server:~$ ps aux | grep nohup # Kill process nohup admin@server:~$ kill PID

Perbedaan bg, fg, dan nohup

COMMANDFUNGSIUSE CASE
bgLanjutkan process yang di-stop di backgroundLanjutkan process yang di-pause
fgBawa process ke foregroundInteraksi dengan process
nohupJalankan process yang tetap berjalan meski terminal ditutupLong-running process
TIPS: Gunakan nohup untuk process yang harus tetap berjalan meski kamu logout. Untuk process yang perlu interaksi, gunakan fg.
KOMPETENSI SUB-BAB 04
  • Mampu jalankan process di background
  • Mampu manage job dengan jobs, bg, fg
  • Mampu gunakan nohup untuk long-running process
  • Memahami perbedaan bg, fg, dan nohup
05
SUB-BAB 05 SYSTEMD

MENGENAL systemd

Apa Itu systemd?

systemd adalah init system dan system manager modern untuk Linux. systemd menggantikan init system lama (SysVinit) dan menjadi init system default untuk sebagian besar distribusi Linux modern termasuk Debian, Ubuntu, Fedora, dan CentOS.

Unit Types

systemd mengelola berbagai jenis unit. Setiap unit memiliki file konfigurasi dengan ekstensi berbeda:

UNIT TYPEEKSTENSIDESKRIPSI
Service.serviceService/daemon (sshd, nginx, dll)
Socket.socketSocket untuk socket-based activation
Device.deviceDevice files
Mount.mountMount points
Automount.automountAutomount points
Target.targetGroup of units (seperti runlevel)
Timer.timerTimer untuk scheduled tasks
Path.pathPath-based activation

File Konfigurasi systemd

bash
# Lokasi file unit systemd: # /lib/systemd/system/ - System units (dari package) # /etc/systemd/system/ - System units (custom, admin) # /run/systemd/system/ - Runtime units (runtime-generated) # Lihat file konfigurasi service admin@server:~$ systemctl cat ssh.service # /lib/systemd/system/ssh.service [Unit] Description=OpenBSD Secure Shell server Documentation=man:sshd(8) man:sshd_config(5) After=network.target auditd.service ConditionPathExists=!/etc/ssh/sshd_not_to_be_run [Service] Type=notify EnvironmentFile=-/etc/default/ssh ExecStartPre=/usr/sbin/sshd -t ExecStart=/usr/sbin/sshd -D $SSHD_OPTS ExecReload=/usr/sbin/sshd -t $SSHD_OPTS ExecReload=/bin/kill -HUP $MAINPID KillMode=process Restart=on-failure [Install] WantedBy=multi-user.target Alias=sshd.service # Struktur file unit: # [Unit] - Metadata dan dependencies # [Service] - Konfigurasi service # [Install] - Installation info

Melihat Unit systemd

bash
# Lihat semua unit admin@server:~$ systemctl list-units UNIT LOAD ACTIVE SUB DESCRIPTION proc-sys-fs-binfmt_misc.automount loaded active waiting Arbitrary Executable File Formats File System Automount Point sys-devices-pci0000:00-0000:00:01.1-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda1.device loaded active plugged /sys/devices/pci0000:00/0000:00:01.1/ata1/host0/target0:0:0/0:0:0:0/block/sda/sda1 ... # Lihat semua service units admin@server:~$ systemctl list-units --type=service # Lihat semua unit yang aktif admin@server:~$ systemctl list-units --state=active # Lihat semua unit yang failed admin@server:~$ systemctl list-units --state=failed # Lihat semua unit files (termasuk yang tidak aktif) admin@server:~$ systemctl list-unit-files # Lihat service files admin@server:~$ systemctl list-unit-files --type=service # Lihat status service tertentu admin@server:~$ systemctl status ssh ● ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2026-09-07 10:30:15 WIB; 5min ago Docs: man:sshd(8) Process: 712 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS) Process: 713 ExecStart=/usr/sbin/sshd -D (code=exited, status=0/SUCCESS) Main PID: 714 (sshd) Tasks: 1 (limit: 2340) Memory: 5.6M CPU: 123ms CGroup: /system.slice/ssh.service └─714 /usr/sbin/sshd -D # Lihat status tanpa pager admin@server:~$ systemctl status ssh --no-pager
TIPS: Gunakan systemctl status untuk melihat status detail service termasuk log terakhir. Ini sangat berguna untuk troubleshooting.
KOMPETENSI SUB-BAB 05
  • Memahami konsep systemd dan unit types
  • Mampu melihat unit systemd dengan systemctl
  • Mampu melihat status service
  • Memahami struktur file unit systemd
06
SUB-BAB 06 SYSTEMCTL

systemctl start/stop/restart

systemctl start - Start Service

bash
# Start service admin@server:~$ sudo systemctl start ssh # Start service dengan .service extension admin@server:~$ sudo systemctl start ssh.service # Start multiple services admin@server:~$ sudo systemctl start ssh nginx # Cek status setelah start admin@server:~$ systemctl status ssh ● ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2026-09-07 10:35:00 WIB; 2s ago

systemctl stop - Stop Service

bash
# Stop service admin@server:~$ sudo systemctl stop ssh # Stop multiple services admin@server:~$ sudo systemctl stop ssh nginx # Cek status setelah stop admin@server:~$ systemctl status ssh ● ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled) Active: inactive (dead) since Mon 2026-09-07 10:36:00 WIB; 2s ago

systemctl restart - Restart Service

bash
# Restart service admin@server:~$ sudo systemctl restart ssh # Restart multiple services admin@server:~$ sudo systemctl restart ssh nginx # Reload configuration (tanpa restart) admin@server:~$ sudo systemctl reload ssh # Reload hanya reload konfigurasi, tidak restart service # Tidak semua service support reload # Reload or restart (reload jika support, restart jika tidak) admin@server:~$ sudo systemctl reload-or-restart ssh # Cek status setelah restart admin@server:~$ systemctl status ssh

Perbedaan restart dan reload

COMMANDFUNGSIDOWNTIME
restartStop lalu start serviceAda downtime
reloadReload konfigurasi tanpa restartTidak ada downtime (jika support)
reload-or-restartReload jika support, restart jika tidakTergantung

Melihat Status Service

bash
# Lihat status detail service admin@server:~$ systemctl status ssh # Lihat status tanpa pager admin@server:~$ systemctl status ssh --no-pager # Lihat status singkat admin@server:~$ systemctl is-active ssh active admin@server:~$ systemctl is-enabled ssh enabled admin@server:~$ systemctl is-failed ssh active # Lihat semua service yang aktif admin@server:~$ systemctl list-units --type=service --state=active # Lihat semua service yang failed admin@server:~$ systemctl list-units --type=service --state=failed # Lihat log service admin@server:~$ journalctl -u ssh # Lihat log service real-time admin@server:~$ journalctl -u ssh -f # Lihat log service sejak boot terakhir admin@server:~$ journalctl -u ssh -b # Lihat log service dengan time range admin@server:~$ journalctl -u ssh --since "2026-09-07 10:00:00"
TIPS: Gunakan journalctl -u service-name untuk melihat log service. Ini sangat berguna untuk troubleshooting ketika service gagal start atau crash.
KOMPETENSI SUB-BAB 06
  • Mampu start service dengan systemctl start
  • Mampu stop service dengan systemctl stop
  • Mampu restart service dengan systemctl restart
  • Mampu reload konfigurasi dengan systemctl reload
  • Mampu melihat status service dengan systemctl status
07
SUB-BAB 07 ENABLE

ENABLE SERVICE SAAT BOOT

systemctl enable - Enable Service

bash
# Enable service (start saat boot) admin@server:~$ sudo systemctl enable ssh Created symlink /etc/systemd/system/multi-user.target.wants/ssh.service → /lib/systemd/system/ssh.service. # Enable dan start sekaligus admin@server:~$ sudo systemctl enable --now ssh # Enable multiple services admin@server:~$ sudo systemctl enable ssh nginx # Cek apakah service enabled admin@server:~$ systemctl is-enabled ssh enabled # Disable service (tidak start saat boot) admin@server:~$ sudo systemctl disable ssh Removed /etc/systemd/system/multi-user.target.wants/ssh.service. # Disable dan stop sekaligus admin@server:~$ sudo systemctl disable --now ssh # Cek apakah service disabled admin@server:~$ systemctl is-enabled ssh disabled # Mask service (tidak bisa di-start manual atau otomatis) admin@server:~$ sudo systemctl mask ssh Created symlink /etc/systemd/system/ssh.service → /dev/null. # Unmask service admin@server:~$ sudo systemctl unmask ssh # Cek apakah service masked admin@server:~$ systemctl is-enabled ssh masked # Lihat semua enabled services admin@server:~$ systemctl list-unit-files --state=enabled # Lihat semua disabled services admin@server:~$ systemctl list-unit-files --state=disabled # Lihat semua masked services admin@server:~$ systemctl list-unit-files --state=masked

Perbedaan enable, disable, dan mask

COMMANDFUNGSIREVERSIBLE
enableEnable service untuk start saat bootYa (disable)
disableDisable service untuk tidak start saat bootYa (enable)
maskMask service (tidak bisa di-start sama sekali)Ya (unmask)

Melihat Status Enable/Disable

bash
# Lihat status service admin@server:~$ systemctl status ssh ● ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2026-09-07 10:30:15 WIB; 5min ago # "enabled" = service enabled untuk start saat boot # "disabled" = service disabled untuk tidak start saat boot # "masked" = service masked, tidak bisa di-start # "static" = service tidak punya [Install] section, tidak bisa di-enable/disable # Lihat semua service yang akan start saat boot admin@server:~$ systemctl list-dependencies multi-user.target # Lihat default target admin@server:~$ systemctl get-default multi-user.target # Set default target admin@server:~$ sudo systemctl set-default multi-user.target # Lihat semua target admin@server:~$ systemctl list-units --type=target
TIPS: Gunakan systemctl enable --now untuk enable dan start service sekaligus. Ini menghemat waktu dibanding dengan enable dan start terpisah.
PERINGATAN: Hati-hati menggunakan mask! Service yang di-mask tidak bisa di-start sama sekali, bahkan manual. Gunakan hanya jika kamu yakin tidak akan menggunakan service tersebut.
KOMPETENSI SUB-BAB 07
  • Mampu enable service untuk start saat boot
  • Mampu disable service untuk tidak start saat boot
  • Mampu mask/unmask service
  • Mampu melihat status enable/disable/mask
  • Mampu set default target
VOLUME 09 SELESAI

SELAMAT!

Kamu telah menyelesaikan Volume 09 - Process & Service Management. Dari process pada Linux, ps/top/htop, kill process, background process, mengenal systemd, systemctl start/stop/restart, hingga enable service saat boot. Kamu sekarang menguasai Process & Service Management di Debian Linux. Di Volume 10, kita akan dalami Firewall & Security. Sampai jumpa!
SUB-BAB7 LEVELProcess & Service NEXTFirewall & Security
ABDURROZAK.MY.ID // TERHUBUNG

JARINGAN SOSIAL

Temukan saya di berbagai platform digital