value:  LoginHooks and LogoutHooks have been around for years and are rarely used these days, but are still a perfectly viable way of running a persistence script on macOS Mojave. 
name: Boot or Logon Initialization Scripts: Logon Script (Mac)