Это старая версия IT/Linux/service за 07.07.2019 08:52.

https://stackoverflow.com/ques[..]ssie-without-inittab mht !/example1
https://www.dmosk.ru/miniinstr[..]s.php?mini=systemctl mht- Как в Linux пользоваться командой systemctl
https://habr.com/post/275645/ mht- Systemd: пишем собственные .service и .target

Пример: service firewall

1. Файл /etc/systemd/system/firewall.service

[Unit]
Description=Firewall
After=network.target
After=syslog.target

[Service]
Type=forking
ExecStart=/etc/firewall/rules.sh

[Install]
WantedBy=multi-user.target


2. Файл /etc/firewall/rules.sh


3. Активация
systemctl enable firewall.service


4. Управление
systemctl start firewall.service
systemctl stop firewall.service