See https://github.com/nostalgia-dev/nostalgia_chrome/blob/master/boot_as_service/nostalgia_chrome.service as an example how it's done on linux