added bunch of service related functions, replaced systemctl commands by them