meefik / linuxdeploy

Install and run GNU/Linux on Android
https://meefik.github.io/linuxdeploy
GNU General Public License v3.0
5.27k stars 680 forks source link

How can I use "systemctl" to manage srevices in chroot? #846

Open izeroo opened 7 years ago

izeroo commented 7 years ago

Or another command? I want to start postgresql service, but I really don't know how to start it. When I use "sudo systemctl start postgresql", teminal says "Running in chroot, ignoring request."

isjerryxiao commented 7 years ago

Systemd process needs to be Pid1 during device startup, which is nearly impossible on ordinary Android devices. You should try using sysvinit(service xxx start/stop)

beda17 commented 6 years ago

I use servicectl for that: https://github.com/smaknsk/servicectl