I need to start a systemd service from Ruby on Rails. My ruby code is using backticks to call systemctl:
`systemctl --user start myservice`
It's not working and I think it's to do with the user that command is executed by. Rails is running on Passenger and the user for that should be the same as my service.
I've also tried alternative ways to launch a subprocess