I have a system user that is dedicated to my work. At work I need postgres, however I don't need it anywhere else. Is there a way to start the postgres service when the user logs in and stop it when i log out?
Note that the user has no admin priveleges and i currently cannot start the service with this user account. If I have to change it it's ok, but suboptimal.
edit
During work I switch the user from work user to my normal user account. When I do this postgres should continue to run.
