I’ve had to do a lot of tweaking to it because using
/usr/sbin/servicedoesn’t seem to work right.
Hi Bruno,
Are you executing the script from a docker container in an EC2 Ubuntu 16.04 server ?
Note that running systemd from docker is debated in design. There’s a few of discussion over this, for example LWN: Systemd vs Docker.
Regards,
Wan.