ibuildthecloud/systemd-docker

ExecStartPost not executed

pierreozoux opened this issue · 0 comments

Hi,

I'm using your project, and it's very handy. I can't wait to switch to rocket actually...

I'm hitting a problem, I have the following unit file, but the ExecStartPost is randomly executed, Sometime it is, sometimes, it isn't. I can't figure out why. I'm wondering if it could be systemd-docker.

Here is the output from the unit start:

Feb 18 12:41:00 t1 systemd[1]: Starting web-known.test...
Feb 18 12:41:00 t1 docker[3120]: known.test
Feb 18 12:41:00 t1 docker[3150]: known.test
Feb 18 12:41:00 t1 bash[3217]: + /opt/bin/systemd-docker --env run --rm --name known.test -v /data/runtime/domains/known.test/log/apache2:/var/log/apache2 --link mysql-known.test:db -v /data/domains/known.test/kno
Feb 18 12:41:00 t1 systemd[1]: web@known.test.service: Supervising process 3399 which is not our child. We'll most likely not notice when it exits.
Feb 18 12:41:00 t1 systemd[1]: Started web-known.test.
Feb 18 12:41:00 t1 bash[3217]: 2015/02/18 12:41:00 Moving pid 3399 to /sys/fs/cgroup/cpuset/cgroup.procs
Feb 18 12:41:00 t1 bash[3217]: 2015/02/18 12:41:00 Moving pid 3399 to /sys/fs/cgroup/freezer/cgroup.procs
Feb 18 12:41:00 t1 bash[3217]: 2015/02/18 12:41:00 Moving pid 3399 to /sys/fs/cgroup/devices/system.slice/system-web.slice/cgroup.procs
Feb 18 12:41:00 t1 bash[3217]: 2015/02/18 12:41:00 Moving pid 3399 to /sys/fs/cgroup/memory/system.slice/system-web.slice/cgroup.procs
Feb 18 12:41:00 t1 bash[3217]: 2015/02/18 12:41:00 Moving pid 3399 to /sys/fs/cgroup/blkio/system.slice/system-web.slice/cgroup.procs
Feb 18 12:41:00 t1 bash[3217]: 2015/02/18 12:41:00 Moving pid 3399 to /sys/fs/cgroup/cpu,cpuacct/system.slice/system-web.slice/cgroup.procs
Feb 18 12:41:00 t1 bash[3217]: 2015/02/18 12:41:00 Moving pid 3399 to /sys/fs/cgroup/systemd/system.slice/system-web.slice/web@known.test.service/cgroup.procs
Feb 18 12:41:01 t1 bash[3217]: => Trying to connect to MySQL/MariaDB using:
Feb 18 12:41:01 t1 bash[3217]: ========================================================================
Feb 18 12:41:01 t1 bash[3217]: Database Host Address:  172.17.0.19
Feb 18 12:41:01 t1 bash[3217]: Database Port number:   3306
Feb 18 12:41:01 t1 bash[3217]: Database Name:          known
Feb 18 12:41:01 t1 bash[3217]: Database Username:      admin
Feb 18 12:41:01 t1 bash[3217]: Database Password:      OThjOTBkN2
Feb 18 12:41:01 t1 bash[3217]: ========================================================================
Feb 18 12:41:06 t1 bash[3217]: => Skipped creation of database known <E2><80><93> it already exists.
Feb 18 12:41:06 t1 bash[3217]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.21. Set the 'ServerName' directive globally to suppress this message

But it never called the ExecStartStop script.

Do you have any idea? If not, I'll keep it in a separate file, and wait to switch to rocket.