friends!
I need a mechanism to verify if the linux virtual private server is utilizing systemctl or service.
The systemd application is installed on all of them.
Current Code.
if pgrep systemd-journal; then
systemctl restart unbound
else
service unbound restart
fi