У меня есть конфигурации для начала resque-first.target
, затем resque-metro.target
и наконец resque-prisma.target
, но почему-то все они запускаются одновременно
systemctl --user cat resque-worker.target
# /home/deploy/.config/systemd/user/resque-worker.target
[Unit]
Requires=resque-metro.target resque-prisma.target
systemctl --user cat resque-metro.target
# /home/deploy/.config/systemd/user/resque-metro.target
[Unit]
Description=METRO [staging]
Requires=resque-metro@1.service
Requires=resque-metro@2.service
Requires=resque-first.target
After=resque-first.target
PartOf=resque-worker.target
[Install]
RequiredBy=resque-worker.target
systemctl --user cat resque-prisma.target
# /home/deploy/.config/systemd/user/resque-prisma.target
[Unit]
Description=PRISMA [staging]
Requires=resque-prisma@1.service
Requires=resque-first.target
After=resque-first.target
PartOf=resque-worker.target
[Install]
RequiredBy=resque-worker.target
systemctl --user cat resque-first.target
# /home/deploy/.config/systemd/user/resque-first.target
[Unit]
Description=MAIL [staging]
Requires=resque-mail@1.service
Requires=resque-mail@2.service
Requires=resque-mail@3.service
Requires=resque-mail@4.service
PartOf=resque-metro.target resque-prisma.target
[Install]
RequiredBy=resque-metro.target resque-prisma.target
Как мне запустить resque-first.target, затем resque-metro.target и, наконец, resque-prisma.target?