I have recently moved for 14.04 to 18.04. One key difference is systemd.
There seem to be some processes I can run either by entering the command name
or running systemd followed by the unit name.
what is the relation between them?
For example, I run:
Code:
>>sudo ufw enable
Firewall is active and enabled on system startup
>>
>>sudo ufw status
Status: active
But if I then do:
Code:
>>sudo systemctl status ufw
ufw.service - Uncomplicated firewall
Loaded: loaded (/lib/systemd/system/ufw.service; enabled; vendor preset: enabled)
Active: active (exited) since Wed 2018-07-25 09:31:56 HKT; 8h ago
Docs: man:ufw(8)
Process: 363 ExecStart=/lib/ufw/ufw-init start quiet (code=exited, status=0/SUCCESS)
Main PID: 363 (code=exited, status=0/SUCCESS)
So if I run the ufw cmd, I can enable/disable the firewall.
But this seems to have no relation to the ufw unit managed by sytemctl.
The same thing applies to (say) openvpn.
eg openvpn can be run & managed in the following 2 independent ways:
Code:
>>openvpn abc.conf
or
>>systemctl start openvpn@abc
What is systemctl actually doing
with process like ufw where it seems I manage it myself
with the ufw command?
(in processes where there is a separate daemon, eg vnstat and vnstatd,
I understand systemctl would be managing the daemon.)
Bookmarks