User Tools

Site Tools


services_and_daemons

Table of Contents

If you want to send us your comments, please do so. Thanks
More on comments


Services - Daemons

See Daemon. Some examples for ssh

Systemd

sshd it taken as an example
See man systemctl for more information
Make sure a service is started at system boot. sshd is an example

  • find / -name sshd.service 2> /dev/null. Find the unit file
  • ln -s /path/to/unit/file /etc/systemd/system/<name>.service. Create a link to it
    • ln -s /lib/systemd/system/ssh.service /etc/systemd/system/sshd.service
  • Reload the daemon: systemctl daemon-reload sshd
  • Start: systemctl start sshd
  • Enable: systemctl enable sshd. Make sure the service starts on boot
  • Status: systemctl status sshd. Check the status of the service

More commands

  • Restart: systemctl restart sshd
  • Stop: systemctl stop sshd
  • Disable: systemctl disable sshd . Removes all symlinks to the unit files
  • Show all services: systemctl list-unit-files
  • Show all parameters: systemctl show sshd. Show the parameters of the service

With journalctl information about errors can be found

SysVinit

Use the full path otherwise it might not work

  • Status: /etc/init.d/sshd status
  • Restart: /etc/init.d/sshd restart
  • Show all services: ls /etc/init.d/

Other

  • Restart: service sshd restart or one of start/stop/status

Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy

RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
services_and_daemons.txt · Last modified: 13-05-2023 18:28 by wim